Fs.dir_remove_allΒΆ

dir_remove_all :: fn (dirpath: string, remove_root: , filter: DirScanFilterFn) Error

Remove non-empty directory specified by dirpath and return OK on success, otherwise return an error. Root directory is removed if remove_root is true. Custom file filter function can be specified as needed.

Note

This function recursively remove all nested folders and files in specified sub tree so it can be expensive.

Declared in: fs.bl