Forward selected path to caller
This commit is contained in:
parent
c6eecbddd8
commit
2832e6066e
3 changed files with 39 additions and 9 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue