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

Function isFlutterRepoAsync

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

Source from the content-addressed store, hash-verified

213}
214
215async function isFlutterRepoAsync(folder: string): Promise<boolean> {
216 return await existsAndIsDirectoryAsync(path.join(folder, "bin/flutter")) && await existsAndIsFileAsync(path.join(folder, "bin/cache/dart-sdk"));
217}
218
219export function isFlutterProjectFolder(folder?: string): boolean {
220 return projectReferencesFlutter(folder);

Callers 1

findProjectFoldersFunction · 0.85

Calls 2

existsAndIsFileAsyncFunction · 0.85

Tested by

no test coverage detected