Skip to content

Commit

Permalink
fix finder extra escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenesvk committed Dec 4, 2024
1 parent ab5c49b commit d7295e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fn delete_using_finder<P: AsRef<Path> + std::fmt::Debug>(full_paths: &[P]) -> Re
// The `-e` flag is used to execute only one line of AppleScript.
let mut command = Command::new("osascript");
let posix_files =
full_paths.into_iter().map(|p| format!("POSIX file \"{p:?}\"")).collect::<Vec<String>>().join(", ");
full_paths.into_iter().map(|p| format!("POSIX file {p:?}")).collect::<Vec<String>>().join(", ");
let script = format!("tell application \"Finder\" to delete {{ {posix_files} }}");

let argv: Vec<OsString> = vec!["-e".into(), script.into()];
Expand Down

0 comments on commit d7295e8

Please sign in to comment.