MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / resolveLocalPaths

Function resolveLocalPaths

cli/src/commands/fileSystem/localPath.ts:16–20  ·  view source on GitHub ↗
(localPath: string)

Source from the content-addressed store, hash-verified

14 * @returns A list of absolute paths.
15 */
16export async function resolveLocalPaths(localPath: string): Promise<string[]> {
17 const absolute = expandLeadingTilde(localPath);
18 const expanded = await expandLocalPathIfGlobbed(absolute);
19 return expanded.map((p) => path.resolve(p));
20}
21
22async function expandLocalPathIfGlobbed(localPath: string): Promise<string[]> {
23 if (!LOCAL_PATH_LOOKS_GLOBBED.test(localPath)) {

Callers 3

actionMethod · 0.90
enqueueLocalPathsMethod · 0.90
localPath.test.tsFile · 0.90

Calls 3

expandLeadingTildeFunction · 0.85
expandLocalPathIfGlobbedFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected