mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 06:25:15 +08:00
FIX: Ensure directory exists.
This commit is contained in:
parent
71501feaf3
commit
f534f041a0
|
@ -59,7 +59,11 @@ module FileStore
|
|||
end
|
||||
|
||||
def purge_tombstone(grace_period)
|
||||
Discourse::Utils.execute_command('find', tombstone_dir, '-mtime', "+#{grace_period}", '-type', 'f', '-delete')
|
||||
if Dir.exists?(Discourse.store.tombstone_dir)
|
||||
Discourse::Utils.execute_command(
|
||||
'find', tombstone_dir, '-mtime', "+#{grace_period}", '-type', 'f', '-delete'
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
def get_path_for(type, upload_id, sha, extension)
|
||||
|
|
Loading…
Reference in New Issue
Block a user