X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ffilesystem%2Fheavy_file_ops.cpp;h=695746c8c7ad254b16799a9152a300c6a5c73361;hb=26e2a15bc99ae049324df5b61beb9e9ae17300d0;hp=9a5451b74687355869bcf82de5e0803efc703423;hpb=5efbb79c4a7e11ff2d7193b2cea13fdc79230580;p=feisty_meow.git diff --git a/nucleus/library/filesystem/heavy_file_ops.cpp b/nucleus/library/filesystem/heavy_file_ops.cpp index 9a5451b7..695746c8 100644 --- a/nucleus/library/filesystem/heavy_file_ops.cpp +++ b/nucleus/library/filesystem/heavy_file_ops.cpp @@ -189,6 +189,7 @@ outcome heavy_file_operations::write_file_chunk(const astring &target, // open the file for updating (either read or write). if (!target_file.good()) return TARGET_ACCESS_ERROR; double curr_len = target_file.length(); + target_file.touch(); if (curr_len < byte_start) { byte_array new_chunk;