Function self_replace::self_delete_outside_path
source ยท pub fn self_delete_outside_path<P: AsRef<Path>>(p: P) -> Result<(), Error>
Expand description
Like self_delete
but accepts a path which must not be used for temporary operations.
This is equivalent to self_delete
on Unix, but it instructs the deletion logic to
not place temporary files in the given path (or any subdirectory of) for the duration
of the deletion operation. This is necessary to demolish folder more complex folder
structures on Windows.