diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-16 18:22:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-16 18:22:09 +0300 |
commit | 873eff85f179593d486793be24b3cfaf73226e1f (patch) | |
tree | 23cfa3747f31a853f13c251b247312ddbcd70b53 /src/fs/virtfs/fsdir.cpp | |
parent | 5844f83998040d4a79dc442151a21dc17de60feb (diff) | |
download | mv-873eff85f179593d486793be24b3cfaf73226e1f.tar.gz mv-873eff85f179593d486793be24b3cfaf73226e1f.tar.bz2 mv-873eff85f179593d486793be24b3cfaf73226e1f.tar.xz mv-873eff85f179593d486793be24b3cfaf73226e1f.zip |
Add subdir support in VirtFs::getDirs.
Diffstat (limited to 'src/fs/virtfs/fsdir.cpp')
-rw-r--r-- | src/fs/virtfs/fsdir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/virtfs/fsdir.cpp b/src/fs/virtfs/fsdir.cpp index 10e980722..966ab4025 100644 --- a/src/fs/virtfs/fsdir.cpp +++ b/src/fs/virtfs/fsdir.cpp @@ -619,10 +619,10 @@ namespace FsDir } void getDirs(FsEntry *restrict const entry, - const std::string &dirName, + 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) |