MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / directories

Method directories

atomic-core/src/output/repo/tree.rs:731–733  ·  view source on GitHub ↗

Get only directories from the result.

(&self)

Source from the content-addressed store, hash-verified

729
730 /// Get only directories from the result.
731 pub fn directories(&self) -> impl Iterator<Item = &TreeItem> {
732 self.items.iter().filter(|item| item.is_directory)
733 }
734
735 /// Sort items by path.
736 pub fn sort_by_path(&mut self) {

Callers 1

Calls 1

iterMethod · 0.45

Tested by 1