Skip to content

Commit 47ed29d

Browse files
authored
Merge pull request #125 from eugenesvk/fr-doc-deletemethod
doc: add an overview table to DeleteMethod on Mac
2 parents 823f6fb + 415c87d commit 47ed29d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/macos.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ use objc2_foundation::{NSFileManager, NSString, NSURL};
66
use crate::{into_unknown, Error, TrashContext};
77

88
#[derive(Copy, Clone, Debug)]
9+
/// There are 2 ways to trash files: via the ≝Finder app or via the OS NsFileManager call
10+
///
11+
/// | <br>Feature |≝<br>Finder |<br>NsFileManager |
12+
/// |:-----------------------|:--------------:|:----------------:|
13+
/// |Undo via "Put back" | ✓ | ✗ |
14+
/// |Speed | ✗<br>Slower | ✓<br>Faster |
15+
/// |No sound | ✗ | ✓ |
16+
/// |No extra permissions | ✗ | ✓ |
17+
///
918
pub enum DeleteMethod {
1019
/// Use an `osascript`, asking the Finder application to delete the files.
1120
///

0 commit comments

Comments
 (0)