Files
dioxus/examples/01-app-demos/file-explorer
BillionTokenandBillionClaw be7296f4f0 fix(file-explorer): prevent entering files as directories (#5383)
The file_explorer example had two issues:
1. Used heuristic (contains '.') to detect files vs directories, which is unreliable
2. Tried to enter files as directories when clicked, causing errors

Changes:
- Use path.is_file() for accurate file detection
- Use path.is_dir() check before entering a directory
- Rename shadowed 'path' variable to 'path_display'

Fixes #5368

Co-authored-by: BillionClaw <267901332+BillionClaw@users.noreply.github.com>
2026-03-18 15:19:24 +00:00
..

File-explorer with Rust and Dioxus

This example shows how a Dioxus App can directly leverage system calls and libraries to bridge native functionality with the WebView renderer.

example

To run this example:

dx serve