summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/fs.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-17 18:21:22 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-17 18:21:22 +0300
commitcda39ec9d6a0b5fab2c009046cf3570ab90db20b (patch)
treecd9d1c5a6abb749d81d7f785917ceb6d0525b898 /src/fs/virtfs/fs.cpp
parenta9d80dc997f95aa17a12e4d797ecc26072a38edb (diff)
downloadplus-cda39ec9d6a0b5fab2c009046cf3570ab90db20b.tar.gz
plus-cda39ec9d6a0b5fab2c009046cf3570ab90db20b.tar.bz2
plus-cda39ec9d6a0b5fab2c009046cf3570ab90db20b.tar.xz
plus-cda39ec9d6a0b5fab2c009046cf3570ab90db20b.zip
Improve a bit virtfs based on directories.
Diffstat (limited to 'src/fs/virtfs/fs.cpp')
-rw-r--r--src/fs/virtfs/fs.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fs/virtfs/fs.cpp b/src/fs/virtfs/fs.cpp
index c6390b914..aa456fb4b 100644
--- a/src/fs/virtfs/fs.cpp
+++ b/src/fs/virtfs/fs.cpp
@@ -368,7 +368,11 @@ namespace VirtFs
return false;
}
logger->log("Add virtual directory: " + newDir);
- addEntry(new DirEntry(newDir, rootDir, subDir, FsDir::getFuncs()),
+ addEntry(new DirEntry(newDir,
+ rootDir,
+ subDir,
+ rootDir + subDir,
+ FsDir::getFuncs()),
append);
return true;
}