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 namespace GpgFrontend {
32 
39 auto GPGFRONTEND_CORE_EXPORT GetFileExtension(const QString& path) -> QString;
40 
47 auto GPGFRONTEND_CORE_EXPORT GetOnlyFileNameWithPath(const QString& path)
48  -> QString;
49 
57 auto GPGFRONTEND_CORE_EXPORT GetFileSizeByPath(
58  const QString& path, const QString& filename_pattern)
59  -> int64_t;
60 
67 auto GPGFRONTEND_CORE_EXPORT GetHumanFriendlyFileSize(int64_t size) -> QString;
68 
75 void GPGFRONTEND_CORE_EXPORT DeleteAllFilesByPattern(
76  const QString& path, const QString& filename_pattern);
77 
78 } // 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