summaryrefslogtreecommitdiffstats
path: root/src/dir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dir.cpp')
-rw-r--r--src/dir.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dir.cpp b/src/dir.cpp
index 558045b..df1665f 100644
--- a/src/dir.cpp
+++ b/src/dir.cpp
@@ -196,7 +196,8 @@ bool Dir::exists(const std::string &path,bool acceptsAbsPath) const
bool Dir::exists() const
{
- return exists(p->path.string());
+ FileInfo fi(p->path);
+ return fi.exists() && fi.isDir();
}
bool Dir::isRelative() const