MCPcopy Create free account
hub / github.com/PerroEngine/Perro / file_ancestor_folders

Function file_ancestor_folders

perro_editor/res/scripts/ui/editor_ui.rs:3169–3178  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

3167 let mut in_objects = false;
3168 let mut objects = Vec::new();
3169 for line in text.lines() {
3170 let trimmed = line.trim();
3171 if trimmed == "[Objects]" {
3172 in_objects = true;
3173 continue;
3174 }
3175 if trimmed == "[/Objects]" {
3176 break;
3177 }
3178 if in_objects && trimmed.contains('=') {
3179 objects.push(trimmed.to_string());
3180 }
3181 if objects.len() >= 6 {

Callers 3

reveal_file_path_in_treeFunction · 0.85
file_path_tree_visibleFunction · 0.85
file_path_depthFunction · 0.85

Calls 4

parent_res_folderFunction · 0.85
cloneMethod · 0.80
is_emptyMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected