isParentDirectory() — astro Function Reference
Architecture documentation for the isParentDirectory() function in utils.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 2749e846_3241_0979_602a_7e63b6672296["isParentDirectory()"] 7a09e708_c090_71c0_8138_7343699b1865["utils.ts"] 2749e846_3241_0979_602a_7e63b6672296 -->|defined in| 7a09e708_c090_71c0_8138_7343699b1865 e9eac359_83b6_182d_4bbe_8249d11e3d5f["getEntryType()"] e9eac359_83b6_182d_4bbe_8249d11e3d5f -->|calls| 2749e846_3241_0979_602a_7e63b6672296 style 2749e846_3241_0979_602a_7e63b6672296 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/utils.ts lines 391–394
function isParentDirectory(parent: URL, child: URL) {
const relative = path.relative(fileURLToPath(parent), fileURLToPath(child));
return !relative.startsWith('..') && !path.isAbsolute(relative);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isParentDirectory() do?
isParentDirectory() is a function in the astro codebase, defined in packages/astro/src/content/utils.ts.
Where is isParentDirectory() defined?
isParentDirectory() is defined in packages/astro/src/content/utils.ts at line 391.
What calls isParentDirectory()?
isParentDirectory() is called by 1 function(s): getEntryType.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free