fix(rest) fse -> copy

This commit is contained in:
coderaiser 2014-04-08 11:04:43 -04:00
parent 7e9b3f8d3b
commit ba0fcadb6e

View file

@ -36,14 +36,12 @@
NOT_LOG = true,
fse = main.srvrequire('ncp') || {
copy : function(from, to, callback) {
pipe.create({
from : from,
to : to,
callback : callback
});
}
copy = main.srvrequire('ncp') || function(from, to, callback) {
pipe.create({
from : from,
to : to,
callback : callback
});
};
/**
@ -279,7 +277,7 @@
if (!Util.checkObjTrue(lFiles, ['from', 'to']))
sendError(pParams, p.data);
else
fse.copy(lFiles.from, lFiles.to, function(error) {
copy(lFiles.from, lFiles.to, function(error) {
if (error)
sendError(pParams, error);
else