Delete and existing folder at the specified path, with option to remove content recursively.
Syntax |
deleteFolder(string path, bool recursive=true, bool prune=true): bool |
---|---|
path |
Path of the folder to be deleted |
recursive |
Flag to delete recursively all contained sub-folders |
prune |
Flag to delete all contents of any sub-folders |
Result |
return operation logical result |
Notes:
•Relative path will be referred to current directory path (see dirPath() method).