(from: string, to: string)
| 78 | } |
| 79 | |
| 80 | function isSubFolder(from: string, to: string): boolean { |
| 81 | const relative: string = path.relative(from, to); |
| 82 | if (relative === "") { |
| 83 | return true; |
| 84 | } |
| 85 | return !relative.startsWith("..") && !path.isAbsolute(relative); |
| 86 | } |
| 87 | |
| 88 | async function determineLeetCodeFolder(): Promise<string> { |
| 89 | let result: string; |
no outgoing calls
no test coverage detected