from_path() — tailwindcss Function Reference
Architecture documentation for the from_path() function in walk.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 275ce747_52cf_7193_9f0d_2cf3bab3ea9c["from_path()"] 8031325b_dcd2_8c49_70e7_46191ce03a79["walk.rs"] 275ce747_52cf_7193_9f0d_2cf3bab3ea9c -->|defined in| 8031325b_dcd2_8c49_70e7_46191ce03a79 da7185cc_deeb_42bc_cc20_4a3139551ba0["visit()"] da7185cc_deeb_42bc_cc20_4a3139551ba0 -->|calls| 275ce747_52cf_7193_9f0d_2cf3bab3ea9c dc874db4_e8a3_5292_d49c_2245b8b18f45["generate_work()"] dc874db4_e8a3_5292_d49c_2245b8b18f45 -->|calls| 275ce747_52cf_7193_9f0d_2cf3bab3ea9c 951367a8_ba0e_dae4_3cae_d3f7848916e3["check_symlink_loop()"] 951367a8_ba0e_dae4_3cae_d3f7848916e3 -->|calls| 275ce747_52cf_7193_9f0d_2cf3bab3ea9c 633cf0ee_78d6_12f4_349d_a7fafa78e65a["path_equals()"] 633cf0ee_78d6_12f4_349d_a7fafa78e65a -->|calls| 275ce747_52cf_7193_9f0d_2cf3bab3ea9c 866a73c9_ab6c_d6a8_247d_b7de7fc01ac9["metadata()"] 275ce747_52cf_7193_9f0d_2cf3bab3ea9c -->|calls| 866a73c9_ab6c_d6a8_247d_b7de7fc01ac9 c30294ef_bb08_283b_8249_9905047aecb1["file_type()"] 275ce747_52cf_7193_9f0d_2cf3bab3ea9c -->|calls| c30294ef_bb08_283b_8249_9905047aecb1 64fbd903_367e_e081_81fa_bf44b0efee21["ino()"] 275ce747_52cf_7193_9f0d_2cf3bab3ea9c -->|calls| 64fbd903_367e_e081_81fa_bf44b0efee21 style 275ce747_52cf_7193_9f0d_2cf3bab3ea9c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/walk.rs lines 398–407
fn from_path(depth: usize, pb: PathBuf, link: bool) -> Result<DirEntryRaw, Error> {
let md = fs::metadata(&pb).map_err(|err| Error::Io(err).with_path(&pb))?;
Ok(DirEntryRaw {
path: pb,
ty: md.file_type(),
follow_link: link,
depth,
metadata: md,
})
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does from_path() do?
from_path() is a function in the tailwindcss codebase, defined in crates/ignore/src/walk.rs.
Where is from_path() defined?
from_path() is defined in crates/ignore/src/walk.rs at line 398.
What does from_path() call?
from_path() calls 3 function(s): file_type, ino, metadata.
What calls from_path()?
from_path() is called by 4 function(s): check_symlink_loop, generate_work, path_equals, visit.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free