A cross-platform picker for access files and folders
Add picker
as a dependency in your Cargo.toml
:
toml
[dependencies]
picker = "0.1.0"
Pick a single file:
```rust use picker::FileOpenPicker;
fn main() { if let Ok(result) = FileOpenPicker::new() .filetypefilter(&["zip", "dmg"]) .filetypefilter(&["png", "jpg"]) .picksinglefile() { if let Some(path) = result { println!("Path is {}.", path); } } } ```