When using Tauri 2.0, for security reasons, the app does not have access to files but requires the use of its fs
API or Rust's std::fs
module. I have struggled to get the fs
API to work so this project is meant to explore.
Read this blog post for more details about this code and understand how to get file-manegement in Tauri 2.0 working.
Run the app:
npm run tauri dev