pub fn remove_contents(path: impl AsRef<Path>) -> Result<()>Available on crate feature
fs only.Expand description
Remove all of path’s contents, but does not remove itself.
Error if the path is not a directory. Does not follow symlinks. If any of the directory content fails to read, it will propagate the error.