1
0
Fork 0

remove pattern match trying to detect files; a stat is more precise.

This commit is contained in:
Willi Goesgens 2015-05-22 10:46:04 +02:00
parent 3033846791
commit 17da88a12f
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) || 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;