Home / Function/ walkdir_is_dir() — tailwindcss Function Reference

walkdir_is_dir() — tailwindcss Function Reference

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

Function rust Oxide PreProcessors calls 6 called by 1

Entity Profile

Dependency Diagram

graph TD
  71f71c85_8468_749e_893a_4842be5cce15["walkdir_is_dir()"]
  8031325b_dcd2_8c49_70e7_46191ce03a79["walk.rs"]
  71f71c85_8468_749e_893a_4842be5cce15 -->|defined in| 8031325b_dcd2_8c49_70e7_46191ce03a79
  73051fe0_7961_eb6e_45e8_f6342250c845["next()"]
  73051fe0_7961_eb6e_45e8_f6342250c845 -->|calls| 71f71c85_8468_749e_893a_4842be5cce15
  c30294ef_bb08_283b_8249_9905047aecb1["file_type()"]
  71f71c85_8468_749e_893a_4842be5cce15 -->|calls| c30294ef_bb08_283b_8249_9905047aecb1
  1f3047bd_cab3_dab1_e7b5_f7ef13815e23["is_dir()"]
  71f71c85_8468_749e_893a_4842be5cce15 -->|calls| 1f3047bd_cab3_dab1_e7b5_f7ef13815e23
  b285c11e_be54_1a5d_97fd_6b377476305a["is_symlink()"]
  71f71c85_8468_749e_893a_4842be5cce15 -->|calls| b285c11e_be54_1a5d_97fd_6b377476305a
  81a81328_f9d1_4939_ace7_0cf7fd2523a1["depth()"]
  71f71c85_8468_749e_893a_4842be5cce15 -->|calls| 81a81328_f9d1_4939_ace7_0cf7fd2523a1
  934d114d_964b_414a_2b41_82e8174b7c3d["path()"]
  71f71c85_8468_749e_893a_4842be5cce15 -->|calls| 934d114d_964b_414a_2b41_82e8174b7c3d
  866a73c9_ab6c_d6a8_247d_b7de7fc01ac9["metadata()"]
  71f71c85_8468_749e_893a_4842be5cce15 -->|calls| 866a73c9_ab6c_d6a8_247d_b7de7fc01ac9
  style 71f71c85_8468_749e_893a_4842be5cce15 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/walk.rs lines 1993–2004

fn walkdir_is_dir(dent: &walkdir::DirEntry) -> bool {
    if dent.file_type().is_dir() {
        return true;
    }
    if !dent.file_type().is_symlink() || dent.depth() > 0 {
        return false;
    }
    dent.path()
        .metadata()
        .ok()
        .map_or(false, |md| md.file_type().is_dir())
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does walkdir_is_dir() do?
walkdir_is_dir() is a function in the tailwindcss codebase, defined in crates/ignore/src/walk.rs.
Where is walkdir_is_dir() defined?
walkdir_is_dir() is defined in crates/ignore/src/walk.rs at line 1993.
What does walkdir_is_dir() call?
walkdir_is_dir() calls 6 function(s): depth, file_type, is_dir, is_symlink, metadata, path.
What calls walkdir_is_dir()?
walkdir_is_dir() 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