}
function f_isSubDir(fullPathToCheck, fullPath) {
- var realFullPath = toRealPath(fullPath);
- return ((-1 !== fullPathToCheck.indexOf(realFullPath)) && (fullPathToCheck !== realFullPath));
+ return (-1 !== fullPathToCheck.indexOf(toRealPath(fullPath)));
};
function f_isCorrectRelativePath(relativePath) {
}
var _myPath = commonFS_.toRealPath(args.directoryPath);
-
- if (_myPath !== undefined && !commonFS_.f_isSubDir(_myPath, this.fullPath)) {
- var m1 = 'Deleted directory should be under the current directory: ' + this.fullPath;
- setTimeout(function() {
- native_.callIfPossible(args.onerror,
- new WebAPIException(WebAPIException.INVALID_VALUES_ERR, m1));
- }, 0);
- return;
- }
-
var _result = native_.callSync('File_statSync', {location: _myPath});
if (native_.isFailure(_result)) {
setTimeout(function() {