(install_dir: &Path)
| 1012 | } |
| 1013 | |
| 1014 | fn codex_plugin_dir_has_only_managed_files(install_dir: &Path) -> bool { |
| 1015 | let Ok(entries) = super::collect_regular_files(install_dir) else { |
| 1016 | return false; |
| 1017 | }; |
| 1018 | let managed = codex_plugin_managed_paths(install_dir); |
| 1019 | entries.iter().all(|entry| managed.contains(entry)) |
| 1020 | } |
| 1021 | |
| 1022 | fn codex_plugin_managed_paths(install_dir: &Path) -> Vec<PathBuf> { |
| 1023 | let mut paths: Vec<PathBuf> = codex_embedded_plugin_files() |
no test coverage detected