From af4c72150f0fa93f33eb156b699e9e73235cb441 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Fri, 19 Dec 2014 16:57:44 +0000 Subject: [PATCH] fix path in directory deletion --- services/filestore/app/coffee/FileHandler.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/filestore/app/coffee/FileHandler.coffee b/services/filestore/app/coffee/FileHandler.coffee index 8968470300..51aec4bba6 100644 --- a/services/filestore/app/coffee/FileHandler.coffee +++ b/services/filestore/app/coffee/FileHandler.coffee @@ -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)->