(fileName: string | string[])
| 62 | } |
| 63 | |
| 64 | getEntry(fileName: string | string[]): Entry | undefined { |
| 65 | let parts = typeof fileName === 'string' ? fileName.split('/') : fileName; |
| 66 | if (parts[0]) { |
| 67 | parts = this.currentDirectory.split('/').concat(parts); |
| 68 | } |
| 69 | parts.shift(); |
| 70 | parts = normalize(parts); |
| 71 | return first(this.files, (files) => getEntryFromFiles(parts, files)); |
| 72 | } |
| 73 | |
| 74 | getDirectories(path: string): string[] { |
| 75 | const dir = this.getEntry(path); |
no test coverage detected