(fileName: string)
| 41 | } |
| 42 | |
| 43 | readResource(fileName: string): Promise<string> { |
| 44 | const result = this.readFile(fileName); |
| 45 | if (result == null) { |
| 46 | return Promise.reject(new Error(`Resource not found: ${fileName}`)); |
| 47 | } |
| 48 | return Promise.resolve(result); |
| 49 | } |
| 50 | |
| 51 | writeFile(fileName: string, data: string): void { |
| 52 | const parts = fileName.split('/'); |