MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / cursor_plugin_dir_has_only_managed_files

Function cursor_plugin_dir_has_only_managed_files

src/agents/cursor.rs:408–414  ·  view source on GitHub ↗
(install_dir: &Path)

Source from the content-addressed store, hash-verified

406}
407
408fn cursor_plugin_dir_has_only_managed_files(install_dir: &Path) -> bool {
409 let Ok(entries) = super::collect_regular_files(install_dir) else {
410 return false;
411 };
412 let managed = cursor_plugin_managed_paths(install_dir);
413 entries.iter().all(|entry| managed.contains(entry))
414}
415
416fn cursor_plugin_managed_paths(install_dir: &Path) -> Vec<PathBuf> {
417 let mut paths: Vec<PathBuf> = embedded_plugin_files()

Callers 1

Calls 3

collect_regular_filesFunction · 0.85
containsMethod · 0.45

Tested by

no test coverage detected