Loading video player...
Learn how to work with the file system in Tauri! đ In this lesson, you'll master: â Tauri's security model - capability-based permissions â Reading files with fs::read_to_string() â Writing files with fs::write() â Native open/save dialogs with tauri-plugin-dialog â Standard app directories (config, data, cache) đ ď¸ Technologies used: ⢠Tauri 2.0 ⢠Rust (std::fs, path module) ⢠React + TypeScript ⢠shadcn/ui components ⢠tauri-plugin-dialog âąď¸ Timestamps: 0:00 - Introduction 0:23 - Tauri Security Model 1:03 - Reading Files from Rust 1:43 - Writing Files 2:18 - File Dialogs (open/save) 3:08 - App Directories 3:43 - Live Demo: Text Editor 4:13 - Conclusion đ Code Examples: ⢠Rust: fs::read_to_string(path) and fs::write(path, contents) ⢠React: open() and save() from dialog plugin ⢠Permissions: dialog:allow-open, fs:allow-read đ GitHub: https://github.com/somaria/yt_gen_ai #Tauri #Rust #React #TypeScript #FileSystem #DesktopApp #Tutorial