summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-09-23 18:06:15 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-09-23 18:06:15 +0200
commit4b3d17e132fe9c88162ff46c1d33f0438c1ba67d (patch)
treece13429316bc1e3fee2101929d9ad077d21eae99
parent89b7b3c16e0aabb5470bb6b8191eac9fbbeb9e49 (diff)
Testing file attribute filter on windows XP.
-rw-r--r--plugingui/directory.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/directory.cc b/plugingui/directory.cc
index 141d944..ce695dc 100644
--- a/plugingui/directory.cc
+++ b/plugingui/directory.cc
@@ -322,9 +322,9 @@ bool Directory::isHidden(std::string path)
#ifdef WIN32
DWORD fattribs = GetFileAttributes(path.c_str());
if(fattribs & FILE_ATTRIBUTE_HIDDEN) {
- return false;
+ return true;
}
- return true;
+ return false;
#else
unsigned pos = path.find_last_of("/\\");
std::string entry = path.substr(pos+1);