MCPcopy Create free account
hub / github.com/cloudconvert/cloudconvert-cli / expandFilePatterns

Function expandFilePatterns

src/files.ts:3–13  ·  view source on GitHub ↗
(patterns: string[] | undefined)

Source from the content-addressed store, hash-verified

1import { globSync } from 'glob';
2
3export function expandFilePatterns(patterns: string[] | undefined): string[] | undefined {
4 if (!patterns) {
5 return undefined;
6 }
7
8 return patterns.flatMap(pattern =>
9 globSync(pattern, {
10 nodir: true
11 })
12 );
13}

Callers 2

files.test.tsFile · 0.85
createCliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected