aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-03-31 11:30:28 +0200
committerGitHub Enterprise <[email protected]>2025-03-31 11:30:28 +0200
commitebe13120c030f8d24c5f05c068d79b2f72fc3c0b (patch)
tree307f037113a64d47dc9f6ac9d1d9eb0ac20fd527 /src/zencore/include
parentlong filename support (#330) (diff)
downloadzen-ebe13120c030f8d24c5f05c068d79b2f72fc3c0b.tar.xz
zen-ebe13120c030f8d24c5f05c068d79b2f72fc3c0b.zip
multithreaded clean (#331)
- Improvement: Faster cleaning of directories - Improvement: Faster initial scanning of local state
Diffstat (limited to 'src/zencore/include')
-rw-r--r--src/zencore/include/zencore/filesystem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zencore/include/zencore/filesystem.h b/src/zencore/include/zencore/filesystem.h
index c23f16d03..66deffa6f 100644
--- a/src/zencore/include/zencore/filesystem.h
+++ b/src/zencore/include/zencore/filesystem.h
@@ -110,6 +110,11 @@ ZENCORE_API uint64_t GetModificationTickFromHandle(void* NativeHandle, std::erro
*/
ZENCORE_API uint64_t GetModificationTickFromPath(const std::filesystem::path& Filename);
+ZENCORE_API bool TryGetFileProperties(const std::filesystem::path& Path,
+ uint64_t& OutSize,
+ uint64_t& OutModificationTick,
+ uint32_t& OutNativeModeOrAttributes);
+
/** Move a file, if the files are not on the same drive the function will fail
*/
ZENCORE_API void RenameFile(const std::filesystem::path& SourcePath, const std::filesystem::path& TargetPath);