open_multiple/
open_multiple.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate nfd;

use nfd::Response;

fn main() {
    let result = nfd::dialog_multiple().open().unwrap_or_else(|e| {
        panic!(e);
    });

    match result {
        Response::OkayMultiple(files) => println!("File path = {:?}", files),
        Response::Cancel => println!("User canceled"),
        _ => (),
    }
}