mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
fix(rest) isRootWin32: no root directory check
This commit is contained in:
parent
2f82c2407f
commit
17d6efff4d
1 changed files with 4 additions and 2 deletions
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
path = require('path'),
|
||||
root = require(DIR + 'root'),
|
||||
config = require(DIR + 'config'),
|
||||
binom = require(DIR + 'binom'),
|
||||
|
||||
CloudFunc = require(DIR_LIB + 'cloudfunc'),
|
||||
|
|
@ -344,9 +345,10 @@
|
|||
}
|
||||
|
||||
function isRootWin32(path) {
|
||||
var isRoot = path === '/';
|
||||
var isRoot = path === '/',
|
||||
isConfig = config('root') === '/';
|
||||
|
||||
return isWin32 && isRoot;
|
||||
return isWin32 && isRoot && isConfig;
|
||||
}
|
||||
|
||||
function getWin32RootMsg(direction) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue