mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-08 02:25:17 -05:00
FileMode/FileOption debugging, fixes, and added safety.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user