MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / existsAndIsDirectorySync

Function existsAndIsDirectorySync

src/shared/utils/fs.ts:176–179  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

174}
175
176export function existsAndIsDirectorySync(file: string): boolean {
177 const stat = statSyncSafe(file);
178 return stat?.isDirectory() ?? false;
179}
180
181export async function existsAndIsFileAsync(file: string): Promise<boolean> {
182 try {

Callers 3

fs.test.tsFile · 0.90
isTestFolderFunction · 0.90
findRootContainingFunction · 0.90

Calls 1

statSyncSafeFunction · 0.85

Tested by

no test coverage detected