A little more loud logging.
This commit is contained in:
parent
892569a416
commit
189e15748a
1 changed files with 3 additions and 0 deletions
|
|
@ -283,6 +283,7 @@ def copy_directory(
|
||||||
written_bytes = 0
|
written_bytes = 0
|
||||||
|
|
||||||
for (source_file, destination_file) in walker:
|
for (source_file, destination_file) in walker:
|
||||||
|
log.loud(f'Working on file {source_file.absolute_path}.')
|
||||||
if not source_file.is_file:
|
if not source_file.is_file:
|
||||||
log.warning('%s disappeared during directory copy.', source_file.absolute_path)
|
log.warning('%s disappeared during directory copy.', source_file.absolute_path)
|
||||||
continue
|
continue
|
||||||
|
|
@ -482,6 +483,7 @@ def copy_file(
|
||||||
)
|
)
|
||||||
|
|
||||||
if not should_overwrite:
|
if not should_overwrite:
|
||||||
|
log.loud(f'Don\'t need to overwrite {destination.absolute_path}.')
|
||||||
return results
|
return results
|
||||||
|
|
||||||
if dry_run:
|
if dry_run:
|
||||||
|
|
@ -489,6 +491,7 @@ def copy_file(
|
||||||
return results
|
return results
|
||||||
|
|
||||||
if callback_pre_copy(source, destination, dry_run=dry_run) is BAIL:
|
if callback_pre_copy(source, destination, dry_run=dry_run) is BAIL:
|
||||||
|
log.loud('Bailing due to callback_pre_copy.')
|
||||||
return results
|
return results
|
||||||
|
|
||||||
destination.parent.makedirs(exist_ok=True)
|
destination.parent.makedirs(exist_ok=True)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue