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.

Entity Profile

Dependency Diagram

graph TD
  232d7685_a0a3_6f0d_1b5d_9233ecba43d6["skip_entry()"]
  e4e100b5_f7f1_f0f3_8c70_c543d01a4402["next()"]
  e4e100b5_f7f1_f0f3_8c70_c543d01a4402 -->|calls| 232d7685_a0a3_6f0d_1b5d_9233ecba43d6
  461518f2_d034_3ecd_d800_8fd8eb7e27f5["should_skip_entry()"]
  232d7685_a0a3_6f0d_1b5d_9233ecba43d6 -->|calls| 461518f2_d034_3ecd_d800_8fd8eb7e27f5
  84f5dd61_79d6_6710_dbec_816fdb4b9a82["path_equals()"]
  232d7685_a0a3_6f0d_1b5d_9233ecba43d6 -->|calls| 84f5dd61_79d6_6710_dbec_816fdb4b9a82
  b9f888eb_e20e_00c4_0e27_95aa2bdddfcf["skip_filesize()"]
  232d7685_a0a3_6f0d_1b5d_9233ecba43d6 -->|calls| b9f888eb_e20e_00c4_0e27_95aa2bdddfcf
  1aaba1c8_3437_8f42_7482_2b7f27702c4c["filter()"]
  232d7685_a0a3_6f0d_1b5d_9233ecba43d6 -->|calls| 1aaba1c8_3437_8f42_7482_2b7f27702c4c
  ca893623_44b4_8a0b_111d_d2fbc9208424["depth()"]
  232d7685_a0a3_6f0d_1b5d_9233ecba43d6 -->|calls| ca893623_44b4_8a0b_111d_d2fbc9208424
  4e11484a_f38c_8d3f_e342_f6603e2f6952["is_dir()"]
  232d7685_a0a3_6f0d_1b5d_9233ecba43d6 -->|calls| 4e11484a_f38c_8d3f_e342_f6603e2f6952
  5a41a98a_774e_c950_dcbd_cc7fe1960b89["path()"]
  232d7685_a0a3_6f0d_1b5d_9233ecba43d6 -->|calls| 5a41a98a_774e_c950_dcbd_cc7fe1960b89
  dc6bfca3_1f85_98a1_5321_3ce0e2355c46["metadata()"]
  232d7685_a0a3_6f0d_1b5d_9233ecba43d6 -->|calls| dc6bfca3_1f85_98a1_5321_3ce0e2355c46
  style 232d7685_a0a3_6f0d_1b5d_9233ecba43d6 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)
    }

Subdomains

Called By

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