Add metafilesystem hook to add optimized implementations of compute recursive directory size

This commit is contained in:
Henrik Rydgård
2021-09-11 18:12:29 +02:00
parent e842d395fa
commit 48310d15a9
11 changed files with 88 additions and 13 deletions
+4
View File
@@ -54,6 +54,8 @@ public:
int RenameFile(const std::string &from, const std::string &to) override { return -1; }
bool RemoveFile(const std::string &filename) override { return false; }
bool ComputeRecursiveDirSizeIfFast(const std::string &path, int64_t *size) override { return false; }
private:
struct TreeEntry {
~TreeEntry();
@@ -150,6 +152,8 @@ public:
int RenameFile(const std::string &from, const std::string &to) override { return -1; }
bool RemoveFile(const std::string &filename) override { return false; }
bool ComputeRecursiveDirSizeIfFast(const std::string &path, int64_t *size) override { return false; }
private:
std::shared_ptr<IFileSystem> isoFileSystem_;
};