Read a file from the session's working directory.
(relativePath: string)
| 70 | |
| 71 | /** Read a file from the session's working directory. */ |
| 72 | readFile(relativePath: string): string { |
| 73 | return fs.readFileSync(path.join(this.workDir, relativePath), 'utf-8') |
| 74 | } |
| 75 | |
| 76 | /** Check if a file exists in the session's working directory. */ |
| 77 | fileExists(relativePath: string): boolean { |
no outgoing calls