FileMode/FileOption debugging, fixes, and added safety.

This commit is contained in:
J-D-K
2025-09-06 19:21:35 -04:00
parent f052d0b2a7
commit e1d592ee9c
44 changed files with 208 additions and 151 deletions

View File

@@ -228,7 +228,9 @@ void fs::copy_directory_commit(const fslib::Path &source,
{
const bool destExists = fslib::directory_exists(fullDest);
const bool createError = !destExists && error::fslib(fslib::create_directory(fullDest));
if (!destExists && createError) { continue; }
const bool commitError =
!createError && error::fslib(fslib::commit_data_to_file_system(fullDest.get_device_name()));
if (!destExists && (createError || commitError)) { continue; }
fs::copy_directory_commit(fullSource, fullDest, journalSize, task);
}