summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui')
-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;
}