Collection of methods for managing local files.
- Source:
Methods
-
<static> createDirectory(basePath, newDirectory)
-
Creates a new directory if it doesn't already exist.
Parameters:
Name Type Description basePath
String Directory to add to. Can end with a path separator, or not. You can only create one new directory at a time, it will not recursively create them.
newDirectory
String Name of the new directory.
- Source:
-
<static> deleteFile(path)
-
Deletes a file if it exists.
Parameters:
Name Type Description path
String Full path of the file.
- Source: