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 5bec7c92_53ea_c39d_0e28_940d7c5582cb["no_read_permissions()"] d16b5ee3_02a3_92c2_a820_d7fe222d6187["read_dir()"] 5bec7c92_53ea_c39d_0e28_940d7c5582cb -->|calls| d16b5ee3_02a3_92c2_a820_d7fe222d6187 03f45cf3_87f6_e91f_bef8_2f9380aab005["assert_paths()"] 5bec7c92_53ea_c39d_0e28_940d7c5582cb -->|calls| 03f45cf3_87f6_e91f_bef8_2f9380aab005 cc9ec348_9694_a24e_6a35_4ffb4c641398["is_dir()"] 5bec7c92_53ea_c39d_0e28_940d7c5582cb -->|calls| cc9ec348_9694_a24e_6a35_4ffb4c641398 style 5bec7c92_53ea_c39d_0e28_940d7c5582cb 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
Source
Frequently Asked Questions
What does no_read_permissions() do?
no_read_permissions() is a function in the tailwindcss codebase.
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