File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
<!-- description -->
4
4
5
- | Platform | Supported |
6
- | -------- | --------- |
7
- | Linux | ✓ |
8
- | Windows | ✓ |
9
- | macOS | ✓ |
10
- | Android | ? |
11
- | iOS | ? |
5
+ | Platform | Supported | Notes |
6
+ | ---------- | ----------- | --------------------------------------------------------------------------- |
7
+ | Linux | ✓ | |
8
+ | Windows | ✓ | Revealing multiple files placed in different directories is not supported |
9
+ | macOS | ✓ | |
10
+ | Android | ? | |
11
+ | iOS | ? | |
12
12
13
13
## Install
14
14
@@ -75,6 +75,10 @@ await openPath('/path/to/file', 'firefox')
75
75
76
76
// Reveal a path with the system's default explorer
77
77
await revealItemInDir (' /path/to/file' )
78
+
79
+ // Reveal multiple paths with the system's default explorer
80
+ // Note: on Windows, files have to be in the same directory
81
+ await revealItemsInDir ([ ' /path/to/file' , ' /path/to/another/file' ])
78
82
```
79
83
80
84
### Usage from Rust
@@ -102,6 +106,10 @@ fn main() {
102
106
103
107
// Reveal a path with the system's default explorer
104
108
opener . reveal_item_in_dir (" /path/to/file" )? ;
109
+
110
+ // Reveal multiple paths with the system's default explorer
111
+ // Note: on Windows, files have to be in the same directory
112
+ opener . reveal_items_in_dir (& [" /path/to/file" ])? ;
105
113
Ok (())
106
114
})
107
115
. run (tauri :: generate_context! ())
You can’t perform that action at this time.
0 commit comments