( fs: FsOperations, filePath: string, loadedPaths: Set<string>, )
| 185 | * @returns true if the file should be skipped (is duplicate) |
| 186 | */ |
| 187 | export function isDuplicatePath( |
| 188 | fs: FsOperations, |
| 189 | filePath: string, |
| 190 | loadedPaths: Set<string>, |
| 191 | ): boolean { |
| 192 | const { resolvedPath } = safeResolvePath(fs, filePath) |
| 193 | if (loadedPaths.has(resolvedPath)) { |
| 194 | return true |
| 195 | } |
| 196 | loadedPaths.add(resolvedPath) |
| 197 | return false |
| 198 | } |
| 199 | |
| 200 | /** |
| 201 | * Resolve the deepest existing ancestor of a path via realpathSync, walking |
no test coverage detected