pub fn Delete(
Path: PathBuf,
Recursive: bool,
UseTrash: bool,
) -> ActionEffect<Arc<dyn FileSystemWriter>, CommonError, ()>Expand description
Creates an effect that, when executed, will delete a file or directory at the specified path.
It uses the FileSystemWriter capability from the environment to perform
the actual file I/O.
§Parameters
Path: ThePathBufof the file or directory to delete.Recursive: Iftrue, deletes a directory and all its contents recursively. This has no effect if the path is a file.UseTrash: Iftrue, moves the item to the system’s trash or recycling bin instead of permanently deleting it.
§Returns
An ActionEffect that resolves to () on success.