* Checks if a file is a hidden file (starts with .)
(filePath: string, root: string)
| 66 | * Checks if a file is a hidden file (starts with .) |
| 67 | */ |
| 68 | private isHiddenFile(filePath: string, root: string): boolean { |
| 69 | const relativePath = path.relative(root, filePath); |
| 70 | const parts = relativePath.split(path.sep); |
| 71 | return parts.some( |
| 72 | (part) => part.startsWith(".") && part !== "." && part !== "..", |
| 73 | ); |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Gets all files recursively from a directory |
no outgoing calls
no test coverage detected