mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Update FileHandler.coffee
Restoring error check.
This commit is contained in:
parent
1e42221954
commit
5bc89c3cbf
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ module.exports =
|
|||
insertFile: (bucket, key, stream, callback)->
|
||||
convetedKey = KeyBuilder.getConvertedFolderKey(key)
|
||||
PersistorManager.deleteDirectory bucket, convetedKey, (error) ->
|
||||
return callback(error) if error?
|
||||
PersistorManager.sendStream bucket, key, stream, callback
|
||||
|
||||
deleteFile: (bucket, key, callback)->
|
||||
|
|
Loading…
Reference in a new issue