(filePath: string, parentPath: string)
| 26 | * @param parentPath The potential parent path to check for |
| 27 | */ |
| 28 | export 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 | } |
no test coverage detected