18 #ifndef QGSFILEUTILS_H
19 #define QGSFILEUTILS_H
21 #include "qgis_core.h"
37 static QString representFileSize( qint64 bytes );
47 static QStringList extensionsFromFilter(
const QString &filter );
60 static QString ensureFileNameHasExtension(
const QString &fileName,
const QStringList &extensions );
73 static QString addExtensionFromFilter(
const QString &fileName,
const QString &filter );
81 static QString stringToSafeFilename(
const QString &
string );
89 static QString findClosestExistingPath(
const QString &path );
101 static QStringList findFile(
const QString &file,
const QString &basepath = QString(),
int maxClimbs = 4,
int searchCeiling = 4,
const QString ¤tDir = QString() );
105 #endif // QGSFILEUTILS_H