Home / Function/ no_read_permissions() — tailwindcss Function Reference

no_read_permissions() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  3d09e639_da97_e46e_1455_b73640534542["no_read_permissions()"]
  b3ca296d_790b_9bf3_23ea_56e5c5c48565["walk.rs"]
  3d09e639_da97_e46e_1455_b73640534542 -->|defined in| b3ca296d_790b_9bf3_23ea_56e5c5c48565
  22e63b02_548b_5463_d609_2419e47f16ca["is_dir()"]
  3d09e639_da97_e46e_1455_b73640534542 -->|calls| 22e63b02_548b_5463_d609_2419e47f16ca
  aa0cee8b_8d87_b865_b317_793adac3036f["read_dir()"]
  3d09e639_da97_e46e_1455_b73640534542 -->|calls| aa0cee8b_8d87_b865_b317_793adac3036f
  9df16f40_0af0_7013_ce71_ae30d02a8d20["assert_paths()"]
  3d09e639_da97_e46e_1455_b73640534542 -->|calls| 9df16f40_0af0_7013_ce71_ae30d02a8d20
  style 3d09e639_da97_e46e_1455_b73640534542 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/walk.rs lines 2444–2459

    fn no_read_permissions() {
        let dir_path = Path::new("/root");

        // There's no /etc/sudoers.d, skip the test.
        if !dir_path.is_dir() {
            return;
        }
        // We're the root, so the test won't check what we want it to.
        if fs::read_dir(&dir_path).is_ok() {
            return;
        }

        // Check that we can't descend but get an entry for the parent dir.
        let builder = WalkBuilder::new(&dir_path);
        assert_paths(dir_path.parent().unwrap(), &builder, &["root"]);
    }

Domain

Subdomains

Frequently Asked Questions

What does no_read_permissions() do?
no_read_permissions() is a function in the tailwindcss codebase, defined in crates/ignore/src/walk.rs.
Where is no_read_permissions() defined?
no_read_permissions() is defined in crates/ignore/src/walk.rs at line 2444.
What does no_read_permissions() call?
no_read_permissions() calls 3 function(s): assert_paths, is_dir, read_dir.

Analyze Your Own Codebase

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

Try Supermodel Free