mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Rolled back deletion guard as some may be using the exception raised in their code
This commit is contained in:
parent
f714d16e50
commit
be9f885429
1 changed files with 1 additions and 2 deletions
|
@ -38,8 +38,7 @@ module Fog
|
|||
|
||||
def destroy
|
||||
requires :directory, :key
|
||||
file = directory.files.head(key)
|
||||
connection.delete_namespace([directory.key, key].join('/')) if file.present?
|
||||
connection.delete_namespace([directory.key, key].join('/'))
|
||||
true
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue