MCPcopy Create free account
hub / github.com/agentcodee/cursor-free-everyday / get_cursor_package_path

Function get_cursor_package_path

reset_machine.rs:47–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47fn get_cursor_package_path() -> Option<PathBuf> {
48 if let Some(user_dirs) = BaseDirs::new() {
49 let local_app_data_dir = user_dirs.data_local_dir();
50 let primary_path = local_app_data_dir.join("Programs").join("cursor").join("resources").join("app").join("package.json");
51 if primary_path.exists() {
52 return Some(primary_path);
53 }
54 let alt_path = local_app_data_dir.join("cursor").join("resources").join("app").join("package.json");
55 if alt_path.exists() {
56 return Some(alt_path);
57 }
58 }
59 None
60}
61
62fn get_cursor_updater_path() -> Option<PathBuf> {
63 if let Some(user_dirs) = BaseDirs::new() {

Callers 1

get_cursor_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected