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 1cc1037f_ecc5_d6c9_e88d_7ed2ad442c72["no_read_permissions()"] 8031325b_dcd2_8c49_70e7_46191ce03a79["walk.rs"] 1cc1037f_ecc5_d6c9_e88d_7ed2ad442c72 -->|defined in| 8031325b_dcd2_8c49_70e7_46191ce03a79 1f3047bd_cab3_dab1_e7b5_f7ef13815e23["is_dir()"] 1cc1037f_ecc5_d6c9_e88d_7ed2ad442c72 -->|calls| 1f3047bd_cab3_dab1_e7b5_f7ef13815e23 c3928b53_09b6_abd6_e1af_169ef4b220b7["read_dir()"] 1cc1037f_ecc5_d6c9_e88d_7ed2ad442c72 -->|calls| c3928b53_09b6_abd6_e1af_169ef4b220b7 3c337f58_9743_cefc_9b9d_984193abd3d2["assert_paths()"] 1cc1037f_ecc5_d6c9_e88d_7ed2ad442c72 -->|calls| 3c337f58_9743_cefc_9b9d_984193abd3d2 style 1cc1037f_ecc5_d6c9_e88d_7ed2ad442c72 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
Defined In
Source
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