()
| 36 | } |
| 37 | |
| 38 | fn get_backup_dir_path() -> Option<PathBuf> { |
| 39 | if let Some(base_dirs) = BaseDirs::new() { |
| 40 | let app_data_dir = base_dirs.config_dir(); |
| 41 | Some(app_data_dir.join("Cursor").join("User").join("globalStorage").join("backups")) |
| 42 | } else { |
| 43 | None |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | fn get_cursor_package_path() -> Option<PathBuf> { |
| 48 | if let Some(user_dirs) = BaseDirs::new() { |