diff options
| author | Dan Engelbrecht <[email protected]> | 2023-08-31 17:23:39 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-31 23:23:39 +0200 |
| commit | 9fb07c67657d5f4e6993c03fe18ba04ad0c2d416 (patch) | |
| tree | 94b21805e724cb15c811ceb3bcbb9ce8fe0e3292 /src/zencore/filesystem.cpp | |
| parent | project store gc deadlock (#381) (diff) | |
| download | zen-9fb07c67657d5f4e6993c03fe18ba04ad0c2d416.tar.xz zen-9fb07c67657d5f4e6993c03fe18ba04ad0c2d416.zip | |
lua config file improvements (#379)
- Bugfix: All options given on command line now overrides lua config file settings
- Improvement: All options available from command line can now be configured in the lua config file (with a few exceptions such as `owner-pid`, `install` and `uninstall`)
We can now also generate a Lua config (just string so far) that includes all options given on command line together with any optional Lua input config file. The idea here is to be able to save config options in the future.
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()) |