MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / isParentPath

Function isParentPath

src/platform/common/platform/fileUtils.ts:28–36  ·  view source on GitHub ↗
(filePath: string, parentPath: string)

Source from the content-addressed store, hash-verified

26 * @param parentPath The potential parent path to check for
27 */
28export function isParentPath(filePath: string, parentPath: string): boolean {
29 if (!parentPath.endsWith(path.sep)) {
30 parentPath += path.sep;
31 }
32 if (!filePath.endsWith(path.sep)) {
33 filePath += path.sep;
34 }
35 return normCasePath(filePath).startsWith(normCasePath(parentPath));
36}

Callers 3

findLocalPythonEnvFunction · 0.90

Calls 1

normCasePathFunction · 0.85

Tested by

no test coverage detected