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 84f5dd61_79d6_6710_dbec_816fdb4b9a82["path_equals()"] 232d7685_a0a3_6f0d_1b5d_9233ecba43d6["skip_entry()"] 232d7685_a0a3_6f0d_1b5d_9233ecba43d6 -->|calls| 84f5dd61_79d6_6710_dbec_816fdb4b9a82 83e9692c_0ef1_97e5_4b56_90182cf80c7a["generate_work()"] 83e9692c_0ef1_97e5_4b56_90182cf80c7a -->|calls| 84f5dd61_79d6_6710_dbec_816fdb4b9a82 9cddcb8d_8667_c506_99c7_f194e438a77a["from_path()"] 84f5dd61_79d6_6710_dbec_816fdb4b9a82 -->|calls| 9cddcb8d_8667_c506_99c7_f194e438a77a 7fe903cc_8c98_43b8_d612_7dd667c800e3["is_stdin()"] 84f5dd61_79d6_6710_dbec_816fdb4b9a82 -->|calls| 7fe903cc_8c98_43b8_d612_7dd667c800e3 1a8d2da6_e473_f6af_b607_f86e2d8f9711["ino()"] 84f5dd61_79d6_6710_dbec_816fdb4b9a82 -->|calls| 1a8d2da6_e473_f6af_b607_f86e2d8f9711 5a41a98a_774e_c950_dcbd_cc7fe1960b89["path()"] 84f5dd61_79d6_6710_dbec_816fdb4b9a82 -->|calls| 5a41a98a_774e_c950_dcbd_cc7fe1960b89 style 84f5dd61_79d6_6710_dbec_816fdb4b9a82 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