distrax.utils.fileio.remove_dir#
- distrax.utils.fileio.remove_dir(path, admin=False)[source]#
Remove a directory and contents of the path specified.
- Parameters:
- Return type:
- Returns:
True if successful else False
Examples
>>> distrax.utils.fileio.remove_dir("folder_exists") True >>> distrax.utils.fileio.remove_dir("non_existent_folder") False