GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
FilesystemUtils.h
1 
29 #pragma once
30 
31 #include "core/GpgFrontendCoreExport.h"
32 
33 namespace GpgFrontend {
34 
41 auto GPGFRONTEND_CORE_EXPORT GetFileExtension(const QString& path) -> QString;
42 
49 auto GPGFRONTEND_CORE_EXPORT GetOnlyFileNameWithPath(const QString& path)
50  -> QString;
51 
59 auto GPGFRONTEND_CORE_EXPORT GetFileSizeByPath(const QString& path,
60  const QString& filename_pattern)
61  -> int64_t;
62 
69 auto GPGFRONTEND_CORE_EXPORT GetHumanFriendlyFileSize(int64_t size) -> QString;
70 
77 void GPGFRONTEND_CORE_EXPORT
78 DeleteAllFilesByPattern(const QString& path, const QString& filename_pattern);
79 
80 } // namespace GpgFrontend
Definition: app.cpp:39
auto GetOnlyFileNameWithPath(const QString &path) -> QString
Get the only file name with path object.
Definition: FilesystemUtils.cpp:33
void DeleteAllFilesByPattern(const QString &path, const QString &filename_pattern)
Definition: FilesystemUtils.cpp:92
auto GetHumanFriendlyFileSize(int64_t size) -> QString
Get the Human Readable File Size object.
Definition: FilesystemUtils.cpp:70
auto GetFileExtension(const QString &path) -> QString
Get the file extension object.
Definition: FilesystemUtils.cpp:45
auto GetFileSizeByPath(const QString &path, const QString &filename_pattern) -> int64_t
Get the File Size By Path object.
Definition: FilesystemUtils.cpp:53