(
ctx: &mut ScriptContext<'_, API>,
visible: bool,
)
| 3659 | if parent.is_empty() { |
| 3660 | return true; |
| 3661 | } |
| 3662 | file_ancestor_folders(path) |
| 3663 | .into_iter() |
| 3664 | .all(|folder| expanded_paths.iter().any(|item| item == &folder)) |
| 3665 | } |
| 3666 | |
| 3667 | pub fn file_ancestor_folders(path: &str) -> Vec<String> { |
| 3668 | let mut out = Vec::new(); |
| 3669 | let mut cursor = parent_res_folder(path); |
| 3670 | while !cursor.is_empty() { |
| 3671 | out.push(cursor.clone()); |
no test coverage detected