summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/fsdir.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-16 19:04:21 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-16 19:04:21 +0300
commitba71181d5e6fd35083a9e7a86c8e1a9592581398 (patch)
tree9c2751255c652aa444a61a083648537fd9177a41 /src/fs/virtfs/fsdir.cpp
parent873eff85f179593d486793be24b3cfaf73226e1f (diff)
downloadplus-ba71181d5e6fd35083a9e7a86c8e1a9592581398.tar.gz
plus-ba71181d5e6fd35083a9e7a86c8e1a9592581398.tar.bz2
plus-ba71181d5e6fd35083a9e7a86c8e1a9592581398.tar.xz
plus-ba71181d5e6fd35083a9e7a86c8e1a9592581398.zip
Add subdir support in VirtFs::getFilesWithDir.
Diffstat (limited to 'src/fs/virtfs/fsdir.cpp')
-rw-r--r--src/fs/virtfs/fsdir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/virtfs/fsdir.cpp b/src/fs/virtfs/fsdir.cpp
index 966ab4025..37c5cc795 100644
--- a/src/fs/virtfs/fsdir.cpp
+++ b/src/fs/virtfs/fsdir.cpp
@@ -573,7 +573,7 @@ namespace FsDir
const std::string &dirName,
StringVect &names)
{
- const std::string path = entry->root + dirName;
+ const std::string path = entry->root + entry->subDir + dirName;
const struct dirent *next_file = nullptr;
DIR *const dir = opendir(path.c_str());
if (dir)