aboutsummaryrefslogtreecommitdiffstats
path: root/doc/reference/jsextensions
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-07-13 14:53:44 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-07-13 13:28:27 +0000
commit8d97a0cfb3340156648171d29f11508820880fae (patch)
tree9263ac57c9a53fbbe3b7b117e20baf9cda6414ca /doc/reference/jsextensions
parent30b6748e32e4f91bb492bcdfe56b99b1a036adb4 (diff)
Add FileInfo::cleanPath()
[ChangeLog] Added the FileInfo::cleanPath() function. Change-Id: Iff3cab134530a6a726bb346dbaa492469f6d90ad Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'doc/reference/jsextensions')
-rw-r--r--doc/reference/jsextensions/jsextension-fileinfo.qdoc7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/reference/jsextensions/jsextension-fileinfo.qdoc b/doc/reference/jsextensions/jsextension-fileinfo.qdoc
index 1dbd7564f..39132cb78 100644
--- a/doc/reference/jsextensions/jsextension-fileinfo.qdoc
+++ b/doc/reference/jsextensions/jsextension-fileinfo.qdoc
@@ -44,6 +44,13 @@
\endcode
Returns the file name of \c filePath up to (but not including) the first '.' character.
+ \section2 cleanPath
+ \code
+ FileInfo.cleanPath(filePath: string): string
+ \endcode
+ Returns \c filePath without redundant separators and with resolved occurrences of
+ \c{.} and \c{..} components. For instance, \c{//usr/local/../bin/} becomes \c{/usr/bin}.
+
\section2 completeBaseName
\code
FileInfo.completeBaseName(filePath: string): string