DioxusLabs / example-projects

Featured Dioxus projects on how to build clean user interfaces in Rust
498 stars 63 forks source link

feat: file-explorer working example with v0.5 #47

Closed tkr-sh closed 6 months ago

tkr-sh commented 6 months ago

I modified the example of the file explorer so it works with dioxus 0.5 Also I fixed the fact that before an element was determined as a file or dir based on its name: if it had a . in it. That's a bad idea because:

The good way to know if something is a file or a directory is to look that with the permissions (a one if it is a directory, a zero if not). This is used with the simple:

 file.file_type().unwrap().is_dir()
tkr-sh commented 6 months ago

Thanks! Appreciate the changes ^^