mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 14:33:36 +00:00
fix: more working directory logic bugs
Some checks failed
Some checks failed
This commit is contained in:
parent
f7e555ea6b
commit
397ab0a6e5
|
|
@ -197,11 +197,9 @@ bool File::mkdirs() const {
|
|||
return fs::is_directory(path, error);
|
||||
}
|
||||
|
||||
if (error) {
|
||||
return false;
|
||||
}
|
||||
fs::create_directories(path, error);
|
||||
|
||||
return fs::create_directories(path, error);
|
||||
return error.value() == 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -478,7 +478,7 @@ File Minecraft::getWorkingDirectory(const std::string& applicationName) {
|
|||
|
||||
if (!workingDirectory.exists()) {
|
||||
if (!workingDirectory.mkdirs()) {
|
||||
Log::info("The working directory could not be created");
|
||||
Log::info("The working directory could not be created.\n");
|
||||
assert(0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue