1
0
mirror of synced 2025-02-08 23:09:36 +01:00

fix: Default folders not being created correctly anymore

This commit is contained in:
WerWolv 2024-06-29 13:01:25 +02:00
parent ac1a28311c
commit b92b0922d5

View File

@ -36,8 +36,9 @@ namespace hex::init {
// Try to create all default directories
for (auto path : paths::All) {
for (auto &folder : path->write()) {
for (auto &folder : path->all()) {
try {
if (hex::fs::isPathWritable(folder.parent_path()))
wolv::io::fs::createDirectories(folder);
} catch (...) {
log::error("Failed to create folder {}!", wolv::util::toUTF8String(folder));