|
static QString | addExtensionFromFilter (const QString &fileName, const QString &filter) |
| Ensures that a fileName ends with an extension from the specified filter string. More...
|
|
static Qgis::DriveType | driveType (const QString &path) SIP_THROW(QgsNotSupportedException) |
| Returns the drive type for the given path. More...
|
|
static QString | ensureFileNameHasExtension (const QString &fileName, const QStringList &extensions) |
| Ensures that a fileName ends with an extension from the provided list of extensions. More...
|
|
static QStringList | extensionsFromFilter (const QString &filter) |
| Returns a list of the extensions contained within a file filter string. More...
|
|
static bool | fileMatchesFilter (const QString &fileName, const QString &filter) |
| Returns true if the given fileName matches a file filter string. More...
|
|
static QString | findClosestExistingPath (const QString &path) |
| Returns the top-most existing folder from path. More...
|
|
static QStringList | findFile (const QString &file, const QString &basepath=QString(), int maxClimbs=4, int searchCeiling=4, const QString ¤tDir=QString()) |
| Will check basepath in an outward spiral up to maxClimbs levels to check if file exists. More...
|
|
static bool | isCloseToLimitOfOpenedFiles (int filesToBeOpened=1) |
| Returns whether when opening new file(s) will reach, or nearly reach, the limit of simultaneously opened files by the process. More...
|
|
static int | openedFileCount () |
| Returns the number of currently opened files by the process. More...
|
|
static int | openedFileLimit () |
| Returns the limit of simultaneously opened files by the process. More...
|
|
static bool | pathIsSlowDevice (const QString &path) |
| Returns true if the specified path is assumed to reside on a slow device, e.g. More...
|
|
static bool | renameDataset (const QString &oldPath, const QString &newPath, QString &error, Qgis::FileOperationFlags flags=Qgis::FileOperationFlag::IncludeMetadataFile|Qgis::FileOperationFlag::IncludeStyleFile) |
| Renames the dataset at oldPath to newPath, renaming both the file at oldPath and all associated sidecar files which exist for it. More...
|
|
static QString | representFileSize (qint64 bytes) |
| Returns the human size from bytes. More...
|
|
static QSet< QString > | sidecarFilesForPath (const QString &path) |
| Returns a list of the sidecar files which exist for the dataset a the specified path. More...
|
|
static QStringList | splitPathToComponents (const QString &path) |
| Given a file path, returns a list of all the components leading to that path. More...
|
|
static QString | stringToSafeFilename (const QString &string) |
| Converts a string to a safe filename, replacing characters which are not safe for filenames with an '_' character. More...
|
|
static QString | wildcardsFromFilter (const QString &filter) |
| Given a filter string like "GeoTIFF Files (*.tiff *.tif)", extracts the wildcard portion of this filter (i.e. More...
|
|