how to select local file or directory #1597
Answered
by
willser
wanghaisheng
asked this question in
Q&A
-
let say after click a button,choose specific folder,folder path shows in the ui |
Beta Was this translation helpful? Give feedback.
Answered by
willser
May 7, 2022
Replies: 2 comments
-
You need Those code work fine in my project. if file_button.clicked() {
if let Some(path) = rfd::FileDialog::new().pick_file() {
*path_buf = Some(path);
}
} If you want to choose a folder,you could use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
emilk
-
thanks for you quick answer ,i will try |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need
rfd
.Following #987 .Those code work fine in my project.
If you want to choose a folder,you could use
pick_folder
function.