mirror of https://gitee.com/bigwinds/arangodb
remove pattern match trying to detect files; a stat is more precise.
This commit is contained in:
parent
3033846791
commit
17da88a12f
|
@ -284,7 +284,7 @@
|
|||
[ appInfo, mount ] );
|
||||
|
||||
utils.validateMount(mount);
|
||||
if (utils.pathRegex.test(appInfo) || fs.exists(appInfo)) {
|
||||
if (fs.exists(appInfo)) {
|
||||
appInfo = moveAppToServer(appInfo);
|
||||
}
|
||||
var res;
|
||||
|
@ -343,7 +343,7 @@
|
|||
[ appInfo, mount ] );
|
||||
|
||||
utils.validateMount(mount);
|
||||
if (utils.pathRegex.test(appInfo) || fs.exists(appInfo)) {
|
||||
if (exists(appInfo)) {
|
||||
appInfo = moveAppToServer(appInfo);
|
||||
}
|
||||
var res;
|
||||
|
@ -375,7 +375,7 @@
|
|||
[ "Mount path", "string" ] ],
|
||||
[ appInfo, mount ] );
|
||||
utils.validateMount(mount);
|
||||
if (utils.pathRegex.test(appInfo) || fs.exists(appInfo)) {
|
||||
if (fs.exists(appInfo)) {
|
||||
appInfo = moveAppToServer(appInfo);
|
||||
}
|
||||
var res;
|
||||
|
|
Loading…
Reference in New Issue