From 6852802b2315e59a0018dc1fde9c073bc7d6ab8d Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 18 Sep 2013 11:09:36 +0000 Subject: [PATCH] fix(rest) stream.createPipe -> pipe.create --- lib/server/rest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/server/rest.js b/lib/server/rest.js index 90b05d84..d981ba77 100644 --- a/lib/server/rest.js +++ b/lib/server/rest.js @@ -319,7 +319,7 @@ case 'cp': if (Util.checkObjTrue(lFiles, ['from', 'to'])) - stream.createPipe({ + pipe.create({ from : lFiles.from, to : lFiles.to, callback : function(pError) { @@ -335,7 +335,7 @@ case 'zip': if (Util.checkObjTrue(lFiles, ['from'])) - stream.createPipe({ + pipe.create({ from : lFiles.from, to : lFiles.to || lFiles.from + '.zip', zip : true,