Update FileHandler.coffee

Restoring error check.
This commit is contained in:
c4live 2014-06-05 14:10:49 +02:00
parent 1e42221954
commit 5bc89c3cbf

View file

@ -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)->