Browse Source

Only touch non property things if file

master
Raphael Roberts 5 years ago
parent
commit
77501b3277
  1. 8
      test_data/mock_backup_data/mock_backupdir.py

8
test_data/mock_backup_data/mock_backupdir.py

@ -16,9 +16,11 @@ def fill_mock_backup_dir(rootdir: Path, target_dir: Path, verbose=False):
for other_file in filter(
lambda path: path.suffix != ".properties", rootdir.glob("*")
):
print(f"Data/apk file: {other_file}")
dest = target_dir / other_file.name
dest.touch(exist_ok=True)
if other_file.is_file():
if verbose:
print(f"Data/apk file: {other_file}")
dest = target_dir / other_file.name
dest.touch(exist_ok=True)
(target_dir / "marker").touch()

Loading…
Cancel
Save