Function rm_rf::force_remove_all
source · Expand description
Force-removes a file/directory and all descendants.
In contrast to std::fs::remove_dir_all
, it will remove
empty directories that lack read access on Linux,
and will remove “read-only” files and directories on Windows.
The current implementation may be not the most efficient one, but it should work.