@amasad/

file persistence bug

Nodejs

No description

fork
loading
Files
  • index.js
  • a.txt
index.js
1
2
3
4
5
// fork
// 1. file exists but empty
// 2. hit run, see file change
// 3. reload and see how it is not persisted
require('fs').writeFileSync('a.txt', 'hello')
node v10.16.0