diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-16 18:10:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-16 18:10:29 +0300 |
commit | 5844f83998040d4a79dc442151a21dc17de60feb (patch) | |
tree | 676268ac999c9009eca96a182f3de9571da24d67 /src/fs/virtfs/fsdir.cpp | |
parent | 3cf47056f239f1096590c27c1d401904a54f84fc (diff) | |
download | mv-5844f83998040d4a79dc442151a21dc17de60feb.tar.gz mv-5844f83998040d4a79dc442151a21dc17de60feb.tar.bz2 mv-5844f83998040d4a79dc442151a21dc17de60feb.tar.xz mv-5844f83998040d4a79dc442151a21dc17de60feb.zip |
Add subdir support in VirtFs::getFiles.
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 bafe3d2e3..10e980722 100644 --- a/src/fs/virtfs/fsdir.cpp +++ b/src/fs/virtfs/fsdir.cpp @@ -521,10 +521,10 @@ namespace FsDir } void getFiles(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) |