MCPcopy Index your code
hub / github.com/Shopify/function-examples / directoryNames

Function directoryNames

util/expand-liquid.js:56–60  ·  view source on GitHub ↗
(parentPath)

Source from the content-addressed store, hash-verified

54}
55
56async function directoryNames(parentPath) {
57 return (await fs.readdir(parentPath, { withFileTypes: true }))
58 .filter(dirent => dirent.isDirectory())
59 .map(dirent => dirent.name);
60}
61
62async function expandExtensionLiquidTemplates(domainName, flavor) {
63 console.log(`Expanding liquid templates for ${domainName}`);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected