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

Method is_hidden_name

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

Check if a filename is hidden. # Arguments `name` - Filename (not full path) # Returns `true` if the filename starts with '.'. # Example ```rust use atomic_core::output::repo::TreeCollectOptions; assert!(TreeCollectOptions::is_hidden_name(".gitignore")); assert!(TreeCollectOptions::is_hidden_name(".hidden")); assert!(!TreeCollectOptions::is_hidden_name("visible.txt")); ```

(name: &str)

Source from the content-addressed store, hash-verified

347 /// assert!(!TreeCollectOptions::is_hidden_name("visible.txt"));
348 /// ```
349 pub fn is_hidden_name(name: &str) -> bool {
350 name.starts_with('.')
351 }
352
353 /// Check if a path should be included based on all filters.
354 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected