1
0
Fork 0

check whether appInfo is something on the filesystem which we like; if - upload it.

This commit is contained in:
Willi Goesgens 2015-05-18 15:19:27 +02:00
parent 5264b612f0
commit 04afbf4ae0
1 changed files with 3 additions and 3 deletions

View File

@ -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;