aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-05-09 14:00:53 +0200
committerGitHub <[email protected]>2022-05-09 14:00:53 +0200
commit007d72930c8a5813de8a202e06b8b18f296b94ed (patch)
treeeea01d61b83c94f2d344392eda0a9b1a06a805a8 /zencore/include
parentMerge pull request #90 from EpicGames/de/simplify-cache-bucket-put-standalone (diff)
parentremove use of Ref<> in ZenCacheStore (diff)
downloadzen-007d72930c8a5813de8a202e06b8b18f296b94ed.tar.xz
zen-007d72930c8a5813de8a202e06b8b18f296b94ed.zip
Merge pull request #89 from EpicGames/de/namespacesv1.0.1.5
Add namespacecachestore layer to allow multiple structured cache namespaces
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/filesystem.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/zencore/include/zencore/filesystem.h b/zencore/include/zencore/filesystem.h
index a6e76eaa0..6d07a79b4 100644
--- a/zencore/include/zencore/filesystem.h
+++ b/zencore/include/zencore/filesystem.h
@@ -169,6 +169,17 @@ public:
void TraverseFileSystem(const std::filesystem::path& RootDir, TreeVisitor& Visitor);
};
+struct DirectoryContent
+{
+ static const uint8_t IncludeDirsFlag = 1u << 0;
+ static const uint8_t IncludeFilesFlag = 1u << 1;
+ static const uint8_t RecursiveFlag = 1u << 2;
+ std::vector<std::filesystem::path> Files;
+ std::vector<std::filesystem::path> Directories;
+};
+
+void GetDirectoryContent(const std::filesystem::path& RootDir, uint8_t Flags, DirectoryContent& OutContent);
+
//////////////////////////////////////////////////////////////////////////
void filesystem_forcelink(); // internal