Skip to content

Commit

Permalink
doc: add an overview table to DeleteMethod on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenesvk committed Dec 4, 2024
1 parent 823f6fb commit 415c87d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ use objc2_foundation::{NSFileManager, NSString, NSURL};
use crate::{into_unknown, Error, TrashContext};

#[derive(Copy, Clone, Debug)]
/// There are 2 ways to trash files: via the ≝Finder app or via the OS NsFileManager call
///
/// | <br>Feature |≝<br>Finder |<br>NsFileManager |
/// |:-----------------------|:--------------:|:----------------:|
/// |Undo via "Put back" | ✓ | ✗ |
/// |Speed | ✗<br>Slower | ✓<br>Faster |
/// |No sound | ✗ | ✓ |
/// |No extra permissions | ✗ | ✓ |
///
pub enum DeleteMethod {
/// Use an `osascript`, asking the Finder application to delete the files.
///
Expand Down

0 comments on commit 415c87d

Please sign in to comment.