Merge pull request #3900 from uppfinnarn/migrate_to_s3-fix

migrate_to_s3: check for missing local files
This commit is contained in:
Régis Hanol 2015-11-16 11:45:14 +01:00
commit a5b635072c
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ def migrate_to_s3
# retrieve the path to the local file # retrieve the path to the local file
path = local.path_for(upload) path = local.path_for(upload)
# make sure the file exists locally # make sure the file exists locally
if !File.exists?(path) if !path or !File.exists?(path)
putc "X" putc "X"
next next
end end