pub async fn read_dir(
path: &Path,
dir: BaseDirectory,
) -> Result<Vec<FileEntry>, Error>
Expand description
List directory files.
§Example
use tauri_sys::fs;
let files = fs::read_dir(path, BaseDirectory::Download).expect("could not read directory");
Requires allowlist > fs > readDir
to be enabled.