Looking up the directory
You can look up for the directory using the getDirectory function as shown in the following example:
getDirectory(dirPath) – Lookup for the directory in the given path
- returns – A DirectoryEntry object
- dirPath – An absolute or relative path of the directory (including directory name).