Ref T203, file utility functions

This commit is contained in:
Klaus Basan
2017-12-17 20:03:41 +01:00
parent 18fe389303
commit 45d02bd22a
2 changed files with 32 additions and 4 deletions

View File

@@ -139,6 +139,15 @@ namespace BlackMisc
//! Human readable (GB, MB, ..) file size
static QString humanReadableFileSize(qint64 size);
//! Executable file name appendixes
static const QStringList &executableSuffixes();
//! Executable file (decided by appendix)
static bool isExecutableFile(const QString &fileName);
//! swift installer
static bool isSwiftInstaller(const QString &fileName);
};
} // ns