mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
Ref T203, file utility functions
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user