(rel: string)
| 54 | } |
| 55 | |
| 56 | async read(rel: string): Promise<Buffer | null> { |
| 57 | try { |
| 58 | return await readFile(join(this.dir, rel)); |
| 59 | } catch (err) { |
| 60 | if ((err as NodeJS.ErrnoException).code !== 'ENOENT') { |
| 61 | this.logger.warn('scrollback.read_failed', { rel, err }); |
| 62 | } |
| 63 | return null; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | async remove(rel: string): Promise<void> { |
| 68 | try { |