fix: Default folders not being created correctly anymore
This commit is contained in:
parent
ac1a28311c
commit
10970d170c
@ -36,9 +36,10 @@ namespace hex::init {
|
|||||||
|
|
||||||
// Try to create all default directories
|
// Try to create all default directories
|
||||||
for (auto path : paths::All) {
|
for (auto path : paths::All) {
|
||||||
for (auto &folder : path->write()) {
|
for (auto &folder : path->all()) {
|
||||||
try {
|
try {
|
||||||
wolv::io::fs::createDirectories(folder);
|
if (hex::fs::isPathWritable(folder.parent_path()))
|
||||||
|
wolv::io::fs::createDirectories(folder);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
log::error("Failed to create folder {}!", wolv::util::toUTF8String(folder));
|
log::error("Failed to create folder {}!", wolv::util::toUTF8String(folder));
|
||||||
result = false;
|
result = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user