Home / Function/ skip_entry() — tailwindcss Function Reference

skip_entry() — tailwindcss Function Reference

Architecture documentation for the skip_entry() function in walk.rs from the tailwindcss codebase.

Function rust OxideEngine Scanner calls 8 called by 1

Entity Profile

Dependency Diagram

graph TD
  10cd0c5a_639d_bb39_ec52_5763cda217d9["skip_entry()"]
  b3ca296d_790b_9bf3_23ea_56e5c5c48565["walk.rs"]
  10cd0c5a_639d_bb39_ec52_5763cda217d9 -->|defined in| b3ca296d_790b_9bf3_23ea_56e5c5c48565
  83bb976e_1649_1bda_3eb2_5a61fc6842eb["next()"]
  83bb976e_1649_1bda_3eb2_5a61fc6842eb -->|calls| 10cd0c5a_639d_bb39_ec52_5763cda217d9
  78dc08c8_e2ba_96ff_3ae5_92c4eba84aeb["depth()"]
  10cd0c5a_639d_bb39_ec52_5763cda217d9 -->|calls| 78dc08c8_e2ba_96ff_3ae5_92c4eba84aeb
  bfef1f48_c276_a284_f360_be867db32a62["should_skip_entry()"]
  10cd0c5a_639d_bb39_ec52_5763cda217d9 -->|calls| bfef1f48_c276_a284_f360_be867db32a62
  0689c91b_b128_bb7a_4086_3fa2a52a5f48["path_equals()"]
  10cd0c5a_639d_bb39_ec52_5763cda217d9 -->|calls| 0689c91b_b128_bb7a_4086_3fa2a52a5f48
  22e63b02_548b_5463_d609_2419e47f16ca["is_dir()"]
  10cd0c5a_639d_bb39_ec52_5763cda217d9 -->|calls| 22e63b02_548b_5463_d609_2419e47f16ca
  0536370b_9fd0_0be7_65e9_eb1763e1e8b4["skip_filesize()"]
  10cd0c5a_639d_bb39_ec52_5763cda217d9 -->|calls| 0536370b_9fd0_0be7_65e9_eb1763e1e8b4
  eaa93251_8ff2_5e1b_adef_2cb61588bdb0["path()"]
  10cd0c5a_639d_bb39_ec52_5763cda217d9 -->|calls| eaa93251_8ff2_5e1b_adef_2cb61588bdb0
  e779231b_985a_36eb_def8_55058c03b00a["metadata()"]
  10cd0c5a_639d_bb39_ec52_5763cda217d9 -->|calls| e779231b_985a_36eb_def8_55058c03b00a
  3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0["filter()"]
  10cd0c5a_639d_bb39_ec52_5763cda217d9 -->|calls| 3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0
  style 10cd0c5a_639d_bb39_ec52_5763cda217d9 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

Frequently Asked Questions

What does skip_entry() do?
skip_entry() is a function in the tailwindcss codebase, defined in crates/ignore/src/walk.rs.
Where is skip_entry() defined?
skip_entry() is defined in crates/ignore/src/walk.rs at line 1047.
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