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)
| 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 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected