summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/fsdir.cpp
diff options
context:
space:
mode:
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)