fix: fs.appendFileSync should use flag instead of flags

This commit is contained in:
Lam Wei Li 2022-05-23 14:22:34 +08:00
parent a46871eaed
commit d718d84359
No known key found for this signature in database
GPG Key ID: 90F6ABECF080D7BF

View File

@ -41,7 +41,7 @@ function touchFile(file, options) {
mkdir(path.dirname(file));
// try to throw EISDIR, EROFS, EACCES
fs.appendFileSync(file, "", { mode: options.mode, flags: options.flag });
fs.appendFileSync(file, "", { mode: options.mode, flag: options.flags });
}
class RollingFileSync {