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 c947b3e9_ccd5_5e95_4687_2e5784c0cc5e["path_equals()"] 365169b4_4aeb_e5a8_2cbf_612384e629cc["skip_entry()"] 365169b4_4aeb_e5a8_2cbf_612384e629cc -->|calls| c947b3e9_ccd5_5e95_4687_2e5784c0cc5e 2d1043b4_619e_f9a7_faf3_ee4e1cdbb69f["generate_work()"] 2d1043b4_619e_f9a7_faf3_ee4e1cdbb69f -->|calls| c947b3e9_ccd5_5e95_4687_2e5784c0cc5e 60ca1299_5a36_c331_ab0a_e448cb652dda["from_path()"] c947b3e9_ccd5_5e95_4687_2e5784c0cc5e -->|calls| 60ca1299_5a36_c331_ab0a_e448cb652dda 1a33f51d_8906_839e_640c_cbc0ff52047c["is_stdin()"] c947b3e9_ccd5_5e95_4687_2e5784c0cc5e -->|calls| 1a33f51d_8906_839e_640c_cbc0ff52047c 57b384dc_479f_c3aa_b09e_f006cf3b568f["ino()"] c947b3e9_ccd5_5e95_4687_2e5784c0cc5e -->|calls| 57b384dc_479f_c3aa_b09e_f006cf3b568f afe9c39f_a243_0367_bdf6_a556fadd6383["path()"] c947b3e9_ccd5_5e95_4687_2e5784c0cc5e -->|calls| afe9c39f_a243_0367_bdf6_a556fadd6383 style c947b3e9_ccd5_5e95_4687_2e5784c0cc5e 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
Called By
Source
Frequently Asked Questions
What does path_equals() do?
path_equals() is a function in the tailwindcss codebase.
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