setting home path now works
This commit is contained in:
parent
75d172fc3f
commit
2ac3c9a45a
16 changed files with 764 additions and 71 deletions
13
src-tauri/src/file_access.rs
Normal file
13
src-tauri/src/file_access.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// #[tauri::command]
|
||||
// pub fn open_file(app_handle: tauri::AppHandle, relative_path: String) -> Option<String> {
|
||||
// let mut file = File::open("foo.txt")?;
|
||||
// let mut contents = String::new();
|
||||
// file.read_to_string(&mut contents)?;
|
||||
// assert_eq!(contents, "Hello, world!");
|
||||
// Ok(())
|
||||
// }
|
||||
|
||||
use std::{path::Path, sync::Mutex};
|
||||
|
||||
use crate::Config;
|
||||
use tauri::Manager;
|
||||
Loading…
Add table
Add a link
Reference in a new issue