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

Method files

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

Get only files from the result.

(&self)

Source from the content-addressed store, hash-verified

724
725 /// Get only files from the result.
726 pub fn files(&self) -> impl Iterator<Item = &TreeItem> {
727 self.items.iter().filter(|item| item.is_file())
728 }
729
730 /// Get only directories from the result.
731 pub fn directories(&self) -> impl Iterator<Item = &TreeItem> {

Callers 1

Calls 2

iterMethod · 0.45
is_fileMethod · 0.45

Tested by 1