MCPcopy Index your code
hub / github.com/midrender/revideo / expandFilePaths

Function expandFilePaths

packages/vite-plugin/src/utils.ts:28–43  ·  view source on GitHub ↗
(filePaths: string[] | string)

Source from the content-addressed store, hash-verified

26}
27
28function expandFilePaths(filePaths: string[] | string): string[] {
29 const expandedFilePaths = [];
30
31 for (const filePath of typeof filePaths === 'string'
32 ? [filePaths]
33 : filePaths) {
34 if (fg.isDynamicPattern(filePath)) {
35 const matchingFilePaths = fg.sync(filePath, {onlyFiles: true});
36 expandedFilePaths.push(...matchingFilePaths);
37 } else {
38 expandedFilePaths.push(filePath);
39 }
40 }
41
42 return expandedFilePaths;
43}
44
45function getMeta(metaPath: string) {
46 if (fs.existsSync(metaPath)) {

Callers 1

getProjectsFunction · 0.85

Calls 1

syncMethod · 0.80

Tested by

no test coverage detected