top

isValidCommonPath

Published 2014-10-28 | (Compatible with SDK 2.5,3.5,4.5,5.0,5.1 and 2010,2011,2012,2013,2014 models)

Checks if there is a directory.

The isValidCommonPath class checks if there is a directory.

isValidCommonPath
Syntax fileSystemObj.isValidCommonPath(directoryPath);
Parameter
directoryPath (String)
path including a name of directory to confirm its existence
Return Value
Int
  • 0 : JS function failed
  • 1 : valid
  • 2 : invalid
Remarks None
Example
var fileSystemObj = new FileSystem();
var bValid = fileSystemObj.isValidCommonPath(curWidget.id);
if (!bValid) {
    fileSystemObj.createCommonDir(curWidget.id);
}
Enumeration None