Skip to content

Commit

Permalink
fix empty folders after normalization
Browse files Browse the repository at this point in the history
otherwise there was empty folder with pre-normalized paths
  • Loading branch information
tymmej authored and mandarons committed Aug 29, 2023
1 parent e92fef8 commit 19de9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sync_photos.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def sync_album(album, destination_path, file_sizes, extensions=None, files=None)
"""Sync given album."""
if album is None or destination_path is None or file_sizes is None:
return None
os.makedirs(destination_path, exist_ok=True)
os.makedirs(unicodedata.normalize("NFC", destination_path), exist_ok=True)
LOGGER.info(f"Syncing {album.title}")
for photo in album:
if photo_wanted(photo, extensions):
Expand Down

0 comments on commit 19de9bc

Please sign in to comment.