mirror of https://gitee.com/bigwinds/arangodb
check whether appInfo is something on the filesystem which we like; if - upload it.
This commit is contained in:
parent
5264b612f0
commit
04afbf4ae0
|
@ -284,7 +284,7 @@
|
|||
[ appInfo, mount ] );
|
||||
|
||||
utils.validateMount(mount);
|
||||
if (utils.pathRegex.test(appInfo)) {
|
||||
if (utils.pathRegex.test(appInfo) || fs.exists(appInfo)) {
|
||||
appInfo = moveAppToServer(appInfo);
|
||||
}
|
||||
var res;
|
||||
|
@ -343,7 +343,7 @@
|
|||
[ appInfo, mount ] );
|
||||
|
||||
utils.validateMount(mount);
|
||||
if (utils.pathRegex.test(appInfo)) {
|
||||
if (utils.pathRegex.test(appInfo) || fs.exists(appInfo)) {
|
||||
appInfo = moveAppToServer(appInfo);
|
||||
}
|
||||
var res;
|
||||
|
@ -375,7 +375,7 @@
|
|||
[ "Mount path", "string" ] ],
|
||||
[ appInfo, mount ] );
|
||||
utils.validateMount(mount);
|
||||
if (utils.pathRegex.test(appInfo)) {
|
||||
if (utils.pathRegex.test(appInfo) || fs.exists(appInfo)) {
|
||||
appInfo = moveAppToServer(appInfo);
|
||||
}
|
||||
var res;
|
||||
|
|
Loading…
Reference in New Issue