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

Function parent_res_folder

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

Source from the content-addressed store, hash-verified

3260 };
3261 let idx = self.node_indices[pos].1;
3262 self.children.get(idx).map(Vec::as_slice).unwrap_or(&[])
3263 }
3264
3265 pub fn child_count(&self, key: u32) -> usize {
3266 self.child_keys(key).len()
3267 }
3268
3269 pub fn roots(&self) -> &[u32] {
3270 &self.roots
3271 }
3272
3273 pub fn path(&self, doc: &SceneDoc, key: SceneKey) -> String {
3274 let mut parts = Vec::new();
3275 let mut cursor = Some(key);

Callers 6

scan_res_pathsFunction · 0.85
duplicate_res_targetFunction · 0.85
rename_res_targetFunction · 0.85
quick_asset_dirFunction · 0.85
file_path_tree_visibleFunction · 0.85
file_ancestor_foldersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected