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

Method is_hidden

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

Check if this item is hidden (filename starts with '.'). # Returns `true` if the filename starts with '.'. # Example ```rust use atomic_core::output::repo::TreeItem; use atomic_core::types::{Inode, Position}; let hidden = TreeItem::file(".gitignore", Inode::ROOT, Position::ROOT); assert!(hidden.is_hidden()); let visible = TreeItem::file("README.md", Inode::ROOT, Position::ROOT); assert!(!vis

(&self)

Source from the content-addressed store, hash-verified

646 /// assert!(!visible.is_hidden());
647 /// ```
648 pub fn is_hidden(&self) -> bool {
649 TreeCollectOptions::is_hidden_name(self.filename())
650 }
651}
652
653// ============================================================================

Callers 1

emit_if_hiddenFunction · 0.80

Calls 1

filenameMethod · 0.80

Tested by

no test coverage detected