skip_entry() — tailwindcss Function Reference
Architecture documentation for the skip_entry() function in walk.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 365169b4_4aeb_e5a8_2cbf_612384e629cc["skip_entry()"] 3e24cbbb_d0d2_be5b_ec36_1f076cc42d7f["next()"] 3e24cbbb_d0d2_be5b_ec36_1f076cc42d7f -->|calls| 365169b4_4aeb_e5a8_2cbf_612384e629cc 3a74141b_8622_2c99_ef5b_c5af19d28167["should_skip_entry()"] 365169b4_4aeb_e5a8_2cbf_612384e629cc -->|calls| 3a74141b_8622_2c99_ef5b_c5af19d28167 c947b3e9_ccd5_5e95_4687_2e5784c0cc5e["path_equals()"] 365169b4_4aeb_e5a8_2cbf_612384e629cc -->|calls| c947b3e9_ccd5_5e95_4687_2e5784c0cc5e 0288eabd_8190_c632_8896_6a91d1efe95c["skip_filesize()"] 365169b4_4aeb_e5a8_2cbf_612384e629cc -->|calls| 0288eabd_8190_c632_8896_6a91d1efe95c 985a1c30_a139_3fd4_c02b_cacd9451ee2f["filter()"] 365169b4_4aeb_e5a8_2cbf_612384e629cc -->|calls| 985a1c30_a139_3fd4_c02b_cacd9451ee2f 8dcded00_73b5_510f_35e9_d6a8a17b3f61["depth()"] 365169b4_4aeb_e5a8_2cbf_612384e629cc -->|calls| 8dcded00_73b5_510f_35e9_d6a8a17b3f61 375b58d9_a2fe_75bb_3a9f_2f5574c0532f["is_dir()"] 365169b4_4aeb_e5a8_2cbf_612384e629cc -->|calls| 375b58d9_a2fe_75bb_3a9f_2f5574c0532f 55dd83a4_0144_9917_edad_d9a20af65a76["path()"] 365169b4_4aeb_e5a8_2cbf_612384e629cc -->|calls| 55dd83a4_0144_9917_edad_d9a20af65a76 8f7185d0_41f0_486a_b2f2_b0a7e93e21b9["metadata()"] 365169b4_4aeb_e5a8_2cbf_612384e629cc -->|calls| 8f7185d0_41f0_486a_b2f2_b0a7e93e21b9 style 365169b4_4aeb_e5a8_2cbf_612384e629cc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/walk.rs lines 1047–1081
fn skip_entry(&self, ent: &DirEntry) -> Result<bool, Error> {
if ent.depth() == 0 {
return Ok(false);
}
// We ensure that trivial skipping is done before any other potentially
// expensive operations (stat, filesystem other) are done. This seems
// like an obvious optimization but becomes critical when filesystem
// operations even as simple as stat can result in significant
// overheads; an example of this was a bespoke filesystem layer in
// Windows that hosted files remotely and would download them on-demand
// when particular filesystem operations occurred. Users of this system
// who ensured correct file-type filters were being used could still
// get unnecessary file access resulting in large downloads.
if should_skip_entry(&self.ig, ent) {
return Ok(true);
}
if let Some(ref stdout) = self.skip {
if path_equals(ent, stdout)? {
return Ok(true);
}
}
if self.max_filesize.is_some() && !ent.is_dir() {
return Ok(skip_filesize(
self.max_filesize.unwrap(),
ent.path(),
&ent.metadata().ok(),
));
}
if let Some(Filter(filter)) = &self.filter {
if !filter(ent) {
return Ok(true);
}
}
Ok(false)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does skip_entry() do?
skip_entry() is a function in the tailwindcss codebase.
What does skip_entry() call?
skip_entry() calls 8 function(s): depth, filter, is_dir, metadata, path, path_equals, should_skip_entry, skip_filesize.
What calls skip_entry()?
skip_entry() is called by 1 function(s): next.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free