diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-16 01:01:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-16 01:46:05 +0300 |
commit | 24bd6a6d26bab89126db7183bb693779a1742c6d (patch) | |
tree | 1a7ae594883562a01abdb2c8070a6585af2780e4 /src/fs/virtfs/fsdir.cpp | |
parent | 65ef43ab06f3dfb7b87caa3ba8236ea741d59f35 (diff) | |
download | mv-24bd6a6d26bab89126db7183bb693779a1742c6d.tar.gz mv-24bd6a6d26bab89126db7183bb693779a1742c6d.tar.bz2 mv-24bd6a6d26bab89126db7183bb693779a1742c6d.tar.xz mv-24bd6a6d26bab89126db7183bb693779a1742c6d.zip |
Add subdir support into virtfs::exists.
Diffstat (limited to 'src/fs/virtfs/fsdir.cpp')
-rw-r--r-- | src/fs/virtfs/fsdir.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/virtfs/fsdir.cpp b/src/fs/virtfs/fsdir.cpp index 4ee6d648e..f7642c72c 100644 --- a/src/fs/virtfs/fsdir.cpp +++ b/src/fs/virtfs/fsdir.cpp @@ -182,10 +182,10 @@ namespace FsDir } bool exists(FsEntry *restrict const entry, - const std::string &fileName, - const std::string &dirName A_UNUSED) + std::string fileName, + std::string dirName A_UNUSED) { - return Files::existsLocal(entry->root + fileName); + return Files::existsLocal(entry->root + entry->subDir + fileName); } void enumerate(FsEntry *restrict const entry, |