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

Method files

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

Get only files from the result.

(&self)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

iterMethod · 0.45
is_fileMethod · 0.45

Tested by 1