mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T258, utility functions
This commit is contained in:
@@ -406,6 +406,12 @@ namespace BlackMisc
|
||||
return fixedPaths;
|
||||
}
|
||||
|
||||
QString CFileUtils::toWindowsLocalPath(const QString &path)
|
||||
{
|
||||
QString p = CFileUtils::fixWindowsUncPath(path);
|
||||
return p.replace('/', '\\');
|
||||
}
|
||||
|
||||
QString CFileUtils::humanReadableFileSize(qint64 size)
|
||||
{
|
||||
// from https://stackoverflow.com/a/30958189/356726
|
||||
|
||||
Reference in New Issue
Block a user