summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/fsdir.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-16 16:28:54 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-16 16:28:54 +0300
commit0a849f982988cbd7c7afdedccb210bada702238b (patch)
tree93fe4838817db6e57c7dbc364dd347d275c67937 /src/fs/virtfs/fsdir.cpp
parentb60b3123345a619aab656c1c361c2c8c42e6455c (diff)
downloadplus-0a849f982988cbd7c7afdedccb210bada702238b.tar.gz
plus-0a849f982988cbd7c7afdedccb210bada702238b.tar.bz2
plus-0a849f982988cbd7c7afdedccb210bada702238b.tar.xz
plus-0a849f982988cbd7c7afdedccb210bada702238b.zip
Add subdir support in VirtFs::isDirectory.
Diffstat (limited to 'src/fs/virtfs/fsdir.cpp')
-rw-r--r--src/fs/virtfs/fsdir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/virtfs/fsdir.cpp b/src/fs/virtfs/fsdir.cpp
index 7556a395c..5d6f97d8e 100644
--- a/src/fs/virtfs/fsdir.cpp
+++ b/src/fs/virtfs/fsdir.cpp
@@ -231,10 +231,10 @@ namespace FsDir
}
bool isDirectory(FsEntry *restrict const entry,
- const std::string &dirName,
+ std::string dirName,
bool &isDirFlag)
{
- std::string path = entry->root + dirName;
+ std::string path = entry->root + entry->subDir + dirName;
struct stat statbuf;
if (stat(path.c_str(), &statbuf) == 0)