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

Function hasPubspecAsync

src/shared/utils/fs.ts:207–209  ·  view source on GitHub ↗
(folder: string)

Source from the content-addressed store, hash-verified

205}
206
207async function hasPubspecAsync(folder: string): Promise<boolean> {
208 return await existsAndIsFileAsync(path.join(folder, "pubspec.yaml"));
209}
210
211async function hasCreateTriggerFileAsync(folder: string): Promise<boolean> {
212 return await existsAndIsFileAsync(path.join(folder, FLUTTER_CREATE_PROJECT_TRIGGER_FILE));

Callers 1

findProjectFoldersFunction · 0.85

Calls 1

existsAndIsFileAsyncFunction · 0.85

Tested by

no test coverage detected