Skip to content

Commit

Permalink
Workaround for SMP bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
regorxxx committed Oct 23, 2022
1 parent 8bce67e commit ec411f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helpers/helpers_xxx_file.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
//06/10/22
//22/10/22

include(fb.ComponentPath + 'docs\\Codepages.js');
include('helpers_xxx.js');
Expand Down Expand Up @@ -73,15 +73,15 @@ function _getNameSpacePath(name) { // bin nameSpace returns a virtual path which
}

function _isFile(file) {
if (isCompatible('1.4.0', 'smp')) {return utils.IsFile(file);}
if (isCompatible('1.4.0', 'smp')) {try {return utils.IsFile(file);} catch (e) {return false;}}
else { //TODO: Deprecated
if (file.startsWith('.\\')) {file = fb.FoobarPath + file.replace('.\\','');}
return isString(file) ? fso.FileExists(file) : false;
}
}

function _isFolder(folder) {
if (isCompatible('1.4.0', 'smp')) {return utils.IsDirectory(folder);}
if (isCompatible('1.4.0', 'smp')) {try {return utils.IsDirectory(folder);} catch (e) {return false;}}
else { //TODO: Deprecated
if (folder.startsWith('.\\')) {folder = fb.FoobarPath + folder.replace('.\\','');}
return isString(folder) ? fso.FolderExists(folder) : false;
Expand Down

0 comments on commit ec411f9

Please sign in to comment.