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:
File can have no extensions (e.g. executables (e.g. /usr/bin/*))
A directory can have a dot (e.g. mkdir -p this.is.a.test)
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:
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:/usr/bin/*
))mkdir -p this.is.a.test
)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: