(input: string)
| 23 | |
| 24 | // 统一路径标准化(兼容 Windows 大小写差异) |
| 25 | function normalizePathForCompare(input: string): string { |
| 26 | const resolved = path.resolve(input) |
| 27 | const normalized = path.normalize(resolved) |
| 28 | return process.platform === 'win32' ? normalized.toLowerCase() : normalized |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * 判断 child 是否为 parent 的子目录 |
no outgoing calls
no test coverage detected