(filePath)
| 100 | } |
| 101 | |
| 102 | async function readOptionalFile(filePath) { |
| 103 | try { |
| 104 | return await readFile(filePath, 'utf8') |
| 105 | } catch { |
| 106 | return null |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | async function restoreOptionalFile(filePath, snapshot) { |
| 111 | if (snapshot === null) { |