diff options
Diffstat (limited to 'src/core/utils/FilesystemUtils.cpp')
-rw-r--r-- | src/core/utils/FilesystemUtils.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/core/utils/FilesystemUtils.cpp b/src/core/utils/FilesystemUtils.cpp index 9e531955..96eeb14c 100644 --- a/src/core/utils/FilesystemUtils.cpp +++ b/src/core/utils/FilesystemUtils.cpp @@ -1,5 +1,5 @@ /** - * Copyright (C) 2021 Saturneric <[email protected]> + * Copyright (C) 2021-2024 Saturneric <[email protected]> * * This file is part of GpgFrontend. * @@ -50,8 +50,8 @@ auto GetFileExtension(const QString &path) -> QString { * @brief * */ -auto GetFileSizeByPath(const QString &path, const QString &filename_pattern) - -> int64_t { +auto GetFileSizeByPath(const QString &path, + const QString &filename_pattern) -> int64_t { auto dir = QDir(path); QFileInfoList const file_list = dir.entryInfoList(QStringList() << filename_pattern, QDir::Files); @@ -70,10 +70,7 @@ auto GetFileSizeByPath(const QString &path, const QString &filename_pattern) auto GetHumanFriendlyFileSize(int64_t size) -> QString { auto num = static_cast<double>(size); QStringList list; - list << "KB" - << "MB" - << "GB" - << "TB"; + list << "KB" << "MB" << "GB" << "TB"; QStringListIterator i(list); QString unit("bytes"); |