X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ffilesystem%2Fheavy_file_ops.cpp;h=05da6a992b58f267540ebceb8577098aba0e99ef;hb=1d0e3f784ca8c86185013026e8500f8460aefe8e;hp=0900b4328b9b52d5f4129b0d0158597d59421430;hpb=06cc6d02cae74ce9fd2f60a78538ae66f5119b57;p=feisty_meow.git diff --git a/nucleus/library/filesystem/heavy_file_ops.cpp b/nucleus/library/filesystem/heavy_file_ops.cpp index 0900b432..05da6a99 100644 --- a/nucleus/library/filesystem/heavy_file_ops.cpp +++ b/nucleus/library/filesystem/heavy_file_ops.cpp @@ -176,7 +176,11 @@ outcome heavy_file_operations::write_file_chunk(const astring &target, if (byte_start < 0) return BAD_INPUT; filename targ_name(target); - if (!directory::recursive_create(targ_name.dirname().raw())) { + astring targ_dir = targ_name.dirname().raw(); +#ifdef DEBUG_HEAVY_FILE_OPS + LOG(astring("creating target's directory: ") + targ_name.dirname().raw()); +#endif + if (!directory::recursive_create(targ_dir)) { LOG(astring("failed to create directory: ") + targ_name.dirname().raw()); return TARGET_DIR_ERROR; }