mirror of
https://github.com/discourse/discourse.git
synced 2025-07-03 08:42:50 +08:00
Merge pull request #3900 from uppfinnarn/migrate_to_s3-fix
migrate_to_s3: check for missing local files
This commit is contained in:
@ -134,7 +134,7 @@ def migrate_to_s3
|
||||
# retrieve the path to the local file
|
||||
path = local.path_for(upload)
|
||||
# make sure the file exists locally
|
||||
if !File.exists?(path)
|
||||
if !path or !File.exists?(path)
|
||||
putc "X"
|
||||
next
|
||||
end
|
||||
|
Reference in New Issue
Block a user