path_equals() — tailwindcss Function Reference
Architecture documentation for the path_equals() function in walk.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 0689c91b_b128_bb7a_4086_3fa2a52a5f48["path_equals()"] b3ca296d_790b_9bf3_23ea_56e5c5c48565["walk.rs"] 0689c91b_b128_bb7a_4086_3fa2a52a5f48 -->|defined in| b3ca296d_790b_9bf3_23ea_56e5c5c48565 10cd0c5a_639d_bb39_ec52_5763cda217d9["skip_entry()"] 10cd0c5a_639d_bb39_ec52_5763cda217d9 -->|calls| 0689c91b_b128_bb7a_4086_3fa2a52a5f48 4825dec2_fb68_889a_5be0_2277e9d7cb28["generate_work()"] 4825dec2_fb68_889a_5be0_2277e9d7cb28 -->|calls| 0689c91b_b128_bb7a_4086_3fa2a52a5f48 93c87ede_ac44_143d_c1d8_e455117fd46d["ino()"] 0689c91b_b128_bb7a_4086_3fa2a52a5f48 -->|calls| 93c87ede_ac44_143d_c1d8_e455117fd46d e7919907_799c_ceb1_02c0_917c41393f55["is_stdin()"] 0689c91b_b128_bb7a_4086_3fa2a52a5f48 -->|calls| e7919907_799c_ceb1_02c0_917c41393f55 8cdd946e_f150_fdac_f16e_eef795456f32["from_path()"] 0689c91b_b128_bb7a_4086_3fa2a52a5f48 -->|calls| 8cdd946e_f150_fdac_f16e_eef795456f32 eaa93251_8ff2_5e1b_adef_2cb61588bdb0["path()"] 0689c91b_b128_bb7a_4086_3fa2a52a5f48 -->|calls| eaa93251_8ff2_5e1b_adef_2cb61588bdb0 style 0689c91b_b128_bb7a_4086_3fa2a52a5f48 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/walk.rs lines 1964–1983
fn path_equals(dent: &DirEntry, handle: &Handle) -> Result<bool, Error> {
#[cfg(unix)]
fn never_equal(dent: &DirEntry, handle: &Handle) -> bool {
dent.ino() != Some(handle.ino())
}
#[cfg(not(unix))]
fn never_equal(_: &DirEntry, _: &Handle) -> bool {
false
}
// If we know for sure that these two things aren't equal, then avoid
// the costly extra stat call to determine equality.
if dent.is_stdin() || never_equal(dent, handle) {
return Ok(false);
}
Handle::from_path(dent.path())
.map(|h| &h == handle)
.map_err(|err| Error::Io(err).with_path(dent.path()))
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does path_equals() do?
path_equals() is a function in the tailwindcss codebase, defined in crates/ignore/src/walk.rs.
Where is path_equals() defined?
path_equals() is defined in crates/ignore/src/walk.rs at line 1964.
What does path_equals() call?
path_equals() calls 4 function(s): from_path, ino, is_stdin, path.
What calls path_equals()?
path_equals() is called by 2 function(s): generate_work, skip_entry.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free