diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-09-23 18:17:31 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-09-23 18:17:31 +0200 |
commit | 8681d056216b49a9963cbaa177dd3c4b7f76cb69 (patch) | |
tree | 45908bb82250c599f552297626f038f92d9c233d | |
parent | 690c230a3add27a5cb552f89ee40705b7965b2af (diff) |
Testing file attribute filter on windows XP.
-rw-r--r-- | plugingui/directory.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/directory.cc b/plugingui/directory.cc index 5a2c7a1..48e67c6 100644 --- a/plugingui/directory.cc +++ b/plugingui/directory.cc @@ -151,7 +151,7 @@ Directory::EntryList Directory::listFiles(std::string path, unsigned char filter if(Directory::isRoot(path) && name == "..") continue; unsigned char entryinfo = 0; - if(isHidden(name)) { + if(isHidden(path + SEP + name)) { entryinfo |= DIRECTORY_HIDDEN; } @@ -293,11 +293,11 @@ bool Directory::isDir(std::string path) struct stat st; if(stat(path.c_str(), &st) == 0) { if((st.st_mode & S_IFDIR) != 0) { - DEBUG(directory, "Yes\n"); + DEBUG(directory, "\t...yes!\n"); return true; } } - DEBUG(directory, "No\n"); + DEBUG(directory, "\t...no!\n"); return false; } |