Home / Function/ read_dir() — tailwindcss Function Reference

read_dir() — tailwindcss Function Reference

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

Function rust OxideEngine Extractor calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  aa0cee8b_8d87_b865_b317_793adac3036f["read_dir()"]
  b3ca296d_790b_9bf3_23ea_56e5c5c48565["walk.rs"]
  aa0cee8b_8d87_b865_b317_793adac3036f -->|defined in| b3ca296d_790b_9bf3_23ea_56e5c5c48565
  db2e31aa_a7bc_3c9b_da84_dcf0c56993e2["run_one()"]
  db2e31aa_a7bc_3c9b_da84_dcf0c56993e2 -->|calls| aa0cee8b_8d87_b865_b317_793adac3036f
  3d09e639_da97_e46e_1455_b73640534542["no_read_permissions()"]
  3d09e639_da97_e46e_1455_b73640534542 -->|calls| aa0cee8b_8d87_b865_b317_793adac3036f
  eaa93251_8ff2_5e1b_adef_2cb61588bdb0["path()"]
  aa0cee8b_8d87_b865_b317_793adac3036f -->|calls| eaa93251_8ff2_5e1b_adef_2cb61588bdb0
  78dc08c8_e2ba_96ff_3ae5_92c4eba84aeb["depth()"]
  aa0cee8b_8d87_b865_b317_793adac3036f -->|calls| 78dc08c8_e2ba_96ff_3ae5_92c4eba84aeb
  style aa0cee8b_8d87_b865_b317_793adac3036f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/walk.rs lines 1488–1502

    fn read_dir(&mut self) -> Result<fs::ReadDir, Error> {
        let readdir = match fs::read_dir(self.dent.path()) {
            Ok(readdir) => readdir,
            Err(err) => {
                let err = Error::from(err)
                    .with_path(self.dent.path())
                    .with_depth(self.dent.depth());
                return Err(err);
            }
        };
        let (ig, err) = self.ignore.add_child(self.dent.path());
        self.ignore = ig;
        self.dent.err = err;
        Ok(readdir)
    }

Domain

Subdomains

Frequently Asked Questions

What does read_dir() do?
read_dir() is a function in the tailwindcss codebase, defined in crates/ignore/src/walk.rs.
Where is read_dir() defined?
read_dir() is defined in crates/ignore/src/walk.rs at line 1488.
What does read_dir() call?
read_dir() calls 2 function(s): depth, path.
What calls read_dir()?
read_dir() is called by 2 function(s): no_read_permissions, run_one.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free