(path: string)
| 305 | } |
| 306 | |
| 307 | getAbstractFileByPath(path: string): TAbstractFile | null { |
| 308 | const normalizedPath = mockFileSystem['normalizePath'](path); |
| 309 | if (mockFileSystem.exists(normalizedPath)) { |
| 310 | return new TFile(normalizedPath); |
| 311 | } |
| 312 | return null; |
| 313 | } |
| 314 | |
| 315 | getFiles(): TFile[] { |
| 316 | return mockFileSystem.getFiles().map(file => new TFile(file.path)); |