fix path in directory deletion

This commit is contained in:
Brian Gough 2014-12-19 16:57:44 +00:00
parent 55c4e220fa
commit af4c72150f

View file

@ -16,10 +16,10 @@ module.exports =
PersistorManager.sendStream bucket, key, stream, callback
deleteFile: (bucket, key, callback)->
convetedKey = KeyBuilder.getConvertedFolderKey(bucket, key)
convetedKey = KeyBuilder.getConvertedFolderKey(key)
async.parallel [
(done)-> PersistorManager.deleteFile bucket, key, done
(done)-> PersistorManager.deleteFile bucket, convetedKey, done
(done)-> PersistorManager.deleteDirectory bucket, convetedKey, done
], callback
getFile: (bucket, key, opts = {}, callback)->