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 basePathString 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.
newDirectoryString Name of the new directory.
- Source:
-
<static> deleteFile(path)
-
Deletes a file if it exists.
Parameters:
Name Type Description pathString Full path of the file.
- Source: