MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / findAppBundle

Function findAppBundle

scripts/studio-host-provider.mjs:565–580  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

563}
564
565async function findAppBundle(root) {
566 const entries = await fs.promises.readdir(root, { withFileTypes: true });
567 for (const entry of entries) {
568 const full = path.join(root, entry.name);
569 if (entry.isDirectory() && entry.name.endsWith(".app")) {
570 return full;
571 }
572 if (entry.isDirectory()) {
573 const nested = await findAppBundle(full);
574 if (nested) {
575 return nested;
576 }
577 }
578 }
579 return null;
580}
581
582async function localGet(config, path) {
583 const target = new URL(path, `${config.localUrl}/`);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected