diff options
| author | Stefan Boberg <[email protected]> | 2021-10-04 17:52:36 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-04 17:52:36 +0200 |
| commit | 299c0a31514cc98c97aa3b07e8cc35b61c1e6d26 (patch) | |
| tree | 5b97caf8c17737e08840762ef8d0fae7fd08fddd /zencore/filesystem.cpp | |
| parent | http: strip any known content-type suffixes from URI before passing it to a s... (diff) | |
| download | zen-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.cpp | 7 |
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); } |