diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-05-13 11:44:45 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-05-13 11:44:45 +0200 |
commit | b69389f609c8c9c441d0251510f6b578a9437f6a (patch) | |
tree | bcd19ce53ac7f69fc1eec0e0f7e1e6cfd12060f0 /plugingui/directory.h | |
parent | b6405171c6a74a5227555a9b75c03f88a5f21ed2 (diff) |
Added filter to exclude hidden directories.
Diffstat (limited to 'plugingui/directory.h')
-rw-r--r-- | plugingui/directory.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugingui/directory.h b/plugingui/directory.h index 50d5fae..04ed3e7 100644 --- a/plugingui/directory.h +++ b/plugingui/directory.h @@ -36,6 +36,8 @@ #include <sys/stat.h> #include <unistd.h> +#define DIRECTORY_HIDDEN 1 + class Directory { public: @@ -70,10 +72,11 @@ class Directory { static std::string root(); static std::string root(std::string path); static std::string cleanPath(std::string path); - static Directory::EntryList listFiles(std::string path); + static Directory::EntryList listFiles(std::string path, unsigned char filter = 0); static bool isRoot(std::string path); static Directory::DriveList drives(); static bool isDir(std::string path); + static bool isHidden(std::string entry); static bool exists(std::string path); static std::string pathDirectory(std::string filepath); |