Atomic file write in stats
This commit is contained in:
parent
9c614529ca
commit
8c949ed440
|
@ -9,7 +9,8 @@
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const util = require("util");
|
const util = require("util");
|
||||||
const writeFile = util.promisify(fs.writeFile);
|
const writeFileAtomic = require("write-file-atomic");
|
||||||
|
const writeFile = util.promisify(writeFileAtomic);
|
||||||
const readFile = util.promisify(fs.readFile);
|
const readFile = util.promisify(fs.readFile);
|
||||||
const readdir = util.promisify(fs.readdir);
|
const readdir = util.promisify(fs.readdir);
|
||||||
const crypto = require("crypto");
|
const crypto = require("crypto");
|
||||||
|
|
Loading…
Reference in New Issue