picker 0.1.1

A cross-platform picker for access files and folders
docs.rs failed to build picker-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

picker

Crates.io License

A cross-platform picker for access files and folders

Installation

Add picker as a dependency in your Cargo.toml:

[dependencies]
picker = "0.1.0"

Example

Pick a single file:

use picker::FileOpenPicker;

fn main() {
    if let Ok(result) = FileOpenPicker::new()
        .file_type_filter(&["zip", "dmg"])
        .file_type_filter(&["png", "jpg"])
        .pick_single_file()
    {
        if let Some(path) = result {
            println!("Path is {}.", path);
        }
    }
}

Supported Platform

  • macOS
  • Windows
  • Linux