tryStatSync() — astro Function Reference
Architecture documentation for the tryStatSync() function in searchRoot.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD d5253abc_b683_1945_9363_e06c6af0d618["tryStatSync()"] f146dc60_74d2_b1d6_cb66_a8216ff4ea82["searchRoot.ts"] d5253abc_b683_1945_9363_e06c6af0d618 -->|defined in| f146dc60_74d2_b1d6_cb66_a8216ff4ea82 3458c191_918d_8674_45e4_2ce7b6917eaf["isFileReadable()"] 3458c191_918d_8674_45e4_2ce7b6917eaf -->|calls| d5253abc_b683_1945_9363_e06c6af0d618 style d5253abc_b683_1945_9363_e06c6af0d618 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/vercel/src/lib/searchRoot.ts lines 25–34
function tryStatSync(file: string): fs.Stats | undefined {
try {
// The "throwIfNoEntry" is a performance optimization for cases where the file does not exist
return fs.statSync(file, {
throwIfNoEntry: false,
});
} catch {
// Ignore errors
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does tryStatSync() do?
tryStatSync() is a function in the astro codebase, defined in packages/integrations/vercel/src/lib/searchRoot.ts.
Where is tryStatSync() defined?
tryStatSync() is defined in packages/integrations/vercel/src/lib/searchRoot.ts at line 25.
What calls tryStatSync()?
tryStatSync() is called by 1 function(s): isFileReadable.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free