Configuration file paths
()
| 27 | |
| 28 | // Configuration file paths |
| 29 | fn get_storage_file_path() -> Option<PathBuf> { |
| 30 | if let Some(base_dirs) = BaseDirs::new() { |
| 31 | let app_data_dir = base_dirs.config_dir(); // Typically %APPDATA% or ~/.config |
| 32 | Some(app_data_dir.join("Cursor").join("User").join("globalStorage").join("storage.json")) |
| 33 | } else { |
| 34 | None |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | fn get_backup_dir_path() -> Option<PathBuf> { |
| 39 | if let Some(base_dirs) = BaseDirs::new() { |