Skip to content

Commit d79221f

Browse files
committedMar 5, 2018
Docs++
[ci-skip]
1 parent 84cdd60 commit d79221f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎python/core/qgsfileutils.sip.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ will be returned unchanged.
7272
Converts a ``string`` to a safe filename, replacing characters which are not safe
7373
for filenames with an '_' character.
7474

75-
This method should be called with file names only, not complete paths.
75+
.. warning::
76+
77+
This method strips slashes from the filename, so it is safe to call with file names only, not complete paths.
7678
%End
7779
};
7880

‎src/core/qgsfileutils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class CORE_EXPORT QgsFileUtils
7575
* Converts a \a string to a safe filename, replacing characters which are not safe
7676
* for filenames with an '_' character.
7777
*
78-
* This method should be called with file names only, not complete paths.
78+
* \warning This method strips slashes from the filename, so it is safe to call with file names only, not complete paths.
7979
*/
8080
static QString stringToSafeFilename( const QString &string );
8181
};

0 commit comments

Comments
 (0)
Please sign in to comment.