From 8681d056216b49a9963cbaa177dd3c4b7f76cb69 Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Tue, 23 Sep 2014 18:17:31 +0200 Subject: Testing file attribute filter on windows XP. --- plugingui/directory.cc | 6 +++--- 1 file 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; } -- cgit v1.2.3