pub async fn rename(
file: &Path,
command: &[OsString],
dry_run: bool,
) -> Result<PathBuf>
Expand description
Rename a file using the provided command.
The function returns the new name. If dry_run
is true
, don’t
actually perform the rename but just “simulate” it.