get_or_set_current_dir() — tailwindcss Function Reference
Architecture documentation for the get_or_set_current_dir() function in walk.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 72f17e95_bf84_3702_4745_9e338f00b255["get_or_set_current_dir()"] d723fee5_6735_de38_e918_7afbac537f66["build()"] d723fee5_6735_de38_e918_7afbac537f66 -->|calls| 72f17e95_bf84_3702_4745_9e338f00b255 acbe815e_41e9_4503_fbe3_32d9556ee615["build_parallel()"] acbe815e_41e9_4503_fbe3_32d9556ee615 -->|calls| 72f17e95_bf84_3702_4745_9e338f00b255 88adb3a7_20c9_8b61_adf6_49be4e277a09["add_ignore()"] 88adb3a7_20c9_8b61_adf6_49be4e277a09 -->|calls| 72f17e95_bf84_3702_4745_9e338f00b255 3ad0df2a_82d9_01c8_96ef_fb656f747f8a["current_dir()"] 72f17e95_bf84_3702_4745_9e338f00b255 -->|calls| 3ad0df2a_82d9_01c8_96ef_fb656f747f8a style 72f17e95_bf84_3702_4745_9e338f00b255 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/walk.rs lines 1000–1018
fn get_or_set_current_dir(&self) -> Option<&Path> {
let result = self.global_gitignores_relative_to.get_or_init(|| {
let result = std::env::current_dir().map_err(Arc::new);
match result {
Ok(ref path) => {
log::trace!("automatically discovered CWD: {}", path.display());
}
Err(ref err) => {
log::debug!(
"failed to find CWD \
(global gitignores will be ignored): \
{err}"
);
}
}
result
});
result.as_ref().ok().map(|path| &**path)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does get_or_set_current_dir() do?
get_or_set_current_dir() is a function in the tailwindcss codebase.
What does get_or_set_current_dir() call?
get_or_set_current_dir() calls 1 function(s): current_dir.
What calls get_or_set_current_dir()?
get_or_set_current_dir() is called by 3 function(s): add_ignore, build, build_parallel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free