summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-09-23 18:17:31 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-09-23 18:17:31 +0200
commit8681d056216b49a9963cbaa177dd3c4b7f76cb69 (patch)
tree45908bb82250c599f552297626f038f92d9c233d
parent690c230a3add27a5cb552f89ee40705b7965b2af (diff)
Testing file attribute filter on windows XP.
-rw-r--r--plugingui/directory.cc6
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;
}