Skip to content

Commit

Permalink
Fix movefilestos3 command
Browse files Browse the repository at this point in the history
  • Loading branch information
MWedl committed Jan 23, 2025
1 parent bd1a601 commit e017941
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def move_files_to_s3(self, storage_name, skip_existing=False):
path = settings.MEDIA_ROOT / (storage_name.replace('_', ''))
if not path.is_dir():
logging.warning(f'Storage "{storage_name}": Directory "{path.absolute()}" does not exist on filesystem. Skipping.')
return

logging.info(f'Storage "{storage_name}": Moving files to S3...')
for file in walk_filesystem(path):
Expand Down

0 comments on commit e017941

Please sign in to comment.