Forward selected path to caller

This commit is contained in:
Jeremy Soller 2024-02-01 17:43:41 -07:00
parent c6eecbddd8
commit 2832e6066e
3 changed files with 39 additions and 9 deletions

View file

@ -1,3 +1,11 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
cosmic_files::dialog()
match cosmic_files::dialog()? {
Some(paths) => {
for path in paths {
println!("{}", path.display());
}
}
None => {}
}
Ok(())
}