Skip to content

Commit

Permalink
Update split_and_create.py
Browse files Browse the repository at this point in the history
Removing action on dryrun, it should only show what is going to happen not actually doing it.
  • Loading branch information
sunset666 authored Oct 25, 2023
1 parent 558d9b1 commit 741d872
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ingest-pipeline/misc/tools/split_and_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ def populate(row, source_entity, entity_factory, dryrun=False):
if dryrun:
if dst_file.exists() and dst_file.is_dir():
for sub_elt in elt.glob('*'):
sub_elt.rename(kid_path / elt.name / sub_elt.name)
print(f'rename {sub_elt} to {kid_path / elt.name / sub_elt.name}')
continue
print(f'rename {elt} to {dst_file}')
Expand Down

0 comments on commit 741d872

Please sign in to comment.