(dir: string, file: string)
| 254 | * @returns true if dir is a parent of file |
| 255 | */ |
| 256 | export function isParentDirectory(dir: string, file: string): boolean { |
| 257 | dir = withTrailingSlash(dir) |
| 258 | return ( |
| 259 | file.startsWith(dir) || |
| 260 | (isCaseInsensitiveFS && file.toLowerCase().startsWith(dir.toLowerCase())) |
| 261 | ) |
| 262 | } |
| 263 | |
| 264 | /** |
| 265 | * Check if 2 file name are identical |
no test coverage detected