diff options
Diffstat (limited to 'src/zencore/filesystem.cpp')
| -rw-r--r-- | src/zencore/filesystem.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zencore/filesystem.cpp b/src/zencore/filesystem.cpp index daf668290..e17d83895 100644 --- a/src/zencore/filesystem.cpp +++ b/src/zencore/filesystem.cpp @@ -207,6 +207,10 @@ CleanDirectory(const wchar_t* DirPath) bool CreateDirectories(const std::filesystem::path& Dir) { + if (Dir.string().ends_with(":")) + { + return false; + } while (!std::filesystem::is_directory(Dir)) { if (Dir.has_parent_path()) |