Home / Function/ from_path() — tailwindcss Function Reference

from_path() — tailwindcss Function Reference

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

Function rust RustCore MachineExtractor calls 3 called by 4

Entity Profile

Dependency Diagram

graph TD
  60ca1299_5a36_c331_ab0a_e448cb652dda["from_path()"]
  c86808e9_e9bf_ba3a_5066_e8e86b62e340["visit()"]
  c86808e9_e9bf_ba3a_5066_e8e86b62e340 -->|calls| 60ca1299_5a36_c331_ab0a_e448cb652dda
  2d1043b4_619e_f9a7_faf3_ee4e1cdbb69f["generate_work()"]
  2d1043b4_619e_f9a7_faf3_ee4e1cdbb69f -->|calls| 60ca1299_5a36_c331_ab0a_e448cb652dda
  f0d10255_d3b9_4506_b0c6_97817d725ef3["check_symlink_loop()"]
  f0d10255_d3b9_4506_b0c6_97817d725ef3 -->|calls| 60ca1299_5a36_c331_ab0a_e448cb652dda
  c947b3e9_ccd5_5e95_4687_2e5784c0cc5e["path_equals()"]
  c947b3e9_ccd5_5e95_4687_2e5784c0cc5e -->|calls| 60ca1299_5a36_c331_ab0a_e448cb652dda
  d87313f3_8b5b_0a2c_87f2_71b90771dc0c["metadata()"]
  60ca1299_5a36_c331_ab0a_e448cb652dda -->|calls| d87313f3_8b5b_0a2c_87f2_71b90771dc0c
  08a3def3_c46f_5695_a279_1932fa144713["file_type()"]
  60ca1299_5a36_c331_ab0a_e448cb652dda -->|calls| 08a3def3_c46f_5695_a279_1932fa144713
  2a3b0a1e_533b_cf9e_c612_402a1c5fd4ae["ino()"]
  60ca1299_5a36_c331_ab0a_e448cb652dda -->|calls| 2a3b0a1e_533b_cf9e_c612_402a1c5fd4ae
  style 60ca1299_5a36_c331_ab0a_e448cb652dda 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

Frequently Asked Questions

What does from_path() do?
from_path() is a function in the tailwindcss codebase.
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