A photo manager for VRChat.
1use std::fs;
2
3#[tauri::command]
4pub fn change_final_path(new_path: &str) {
5 let config_path = dirs::config_dir()
6 .unwrap()
7 .join("PhazeDev/VRChatPhotoManager/.photos_path");
8
9 fs::write(&config_path, new_path.as_bytes()).unwrap();
10
11 match fs::metadata(&new_path) {
12 Ok(_) => {}
13 Err(_) => {
14 fs::create_dir(&new_path).unwrap();
15 }
16 };
17}