mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
fix(rest) fse -> copy
This commit is contained in:
parent
7e9b3f8d3b
commit
ba0fcadb6e
1 changed files with 7 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue