aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-04 17:52:36 +0200
committerStefan Boberg <[email protected]>2021-10-04 17:52:36 +0200
commit299c0a31514cc98c97aa3b07e8cc35b61c1e6d26 (patch)
tree5b97caf8c17737e08840762ef8d0fae7fd08fddd /zencore/filesystem.cpp
parenthttp: strip any known content-type suffixes from URI before passing it to a s... (diff)
downloadzen-299c0a31514cc98c97aa3b07e8cc35b61c1e6d26.tar.xz
zen-299c0a31514cc98c97aa3b07e8cc35b61c1e6d26.zip
filesystem: Added comment for future optimization opportunities in CreateDirectories
Diffstat (limited to 'zencore/filesystem.cpp')
-rw-r--r--zencore/filesystem.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp
index dce479a55..745fe0779 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -63,6 +63,13 @@ DeleteReparsePoint(const wchar_t* Path, DWORD dwReparseTag)
bool
CreateDirectories(const wchar_t* Dir)
{
+ // This may be suboptimal, in that it appears to try and create directories
+ // from the root on up instead of from some directory which is known to
+ // be present
+ //
+ // We should implement a smarter version at some point since this can be
+ // pretty expensive in aggregate
+
return std::filesystem::create_directories(Dir);
}