mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) IO.cp -> IO.copy
This commit is contained in:
parent
13307f3861
commit
5041930685
9 changed files with 48 additions and 11 deletions
|
|
@ -62,11 +62,15 @@ module.exports.read = async (url, dataType = 'text') => {
|
|||
});
|
||||
};
|
||||
|
||||
module.exports.cp = async (data) => {
|
||||
module.exports.copy = async (from, to, names) => {
|
||||
return await sendRequest({
|
||||
method: 'PUT',
|
||||
url: '/cp',
|
||||
data,
|
||||
url: '/copy',
|
||||
data: {
|
||||
from,
|
||||
to,
|
||||
names,
|
||||
},
|
||||
imgPosition,
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ module.exports.delete = handleError(IO.delete);
|
|||
module.exports.patch = handleError(IO.patch);
|
||||
module.exports.write = handleError(IO.write);
|
||||
module.exports.read = handleError(IO.read);
|
||||
module.exports.cp = handleError(IO.cp);
|
||||
module.exports.copy = handleError(IO.copy);
|
||||
module.exports.pack = handleError(IO.pack);
|
||||
module.exports.extract = handleError(IO.extract);
|
||||
module.exports.move = handleError(IO.move);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue