mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
refactor(rest) getWin32RooMsg -> getWin32RootMsg
This commit is contained in:
parent
3921cc0137
commit
96c90587bd
1 changed files with 5 additions and 5 deletions
|
|
@ -292,9 +292,9 @@
|
|||
if (!files.from || !files.to) {
|
||||
sendError(params, p.data);
|
||||
} else if (isRootWin32(files.to)) {
|
||||
sendError(params, getWin32RooMsg('to'));
|
||||
sendError(params, getWin32RootMsg('to'));
|
||||
} else if (isRootWin32(files.from)) {
|
||||
sendError(params, getWin32RooMsg('from'));
|
||||
sendError(params, getWin32RootMsg('from'));
|
||||
} else {
|
||||
files.from = mellow.convertPath(files.from);
|
||||
files.to = mellow.convertPath(files.to);
|
||||
|
|
@ -318,9 +318,9 @@
|
|||
if (!files.from || !files.names || !files.to) {
|
||||
sendError(params, p.data);
|
||||
} else if (isRootWin32(files.to)) {
|
||||
sendError(params, getWin32RooMsg('to'));
|
||||
sendError(params, getWin32RootMsg('to'));
|
||||
} else if (isRootWin32(files.from)) {
|
||||
sendError(params, getWin32RooMsg('from'));
|
||||
sendError(params, getWin32RootMsg('from'));
|
||||
} else {
|
||||
files.from = mellow.convertPath(files.from);
|
||||
files.to = mellow.convertPath(files.to);
|
||||
|
|
@ -454,7 +454,7 @@
|
|||
return isWin32 && isRoot;
|
||||
}
|
||||
|
||||
function getWin32RooMsg(direction) {
|
||||
function getWin32RootMsg(direction) {
|
||||
var messageRaw = 'Could not copy {{ direction }} root on windows!',
|
||||
message = Util.render(messageRaw, {
|
||||
direction: direction
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue