mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
fix: fs.appendFileSync should use flag instead of flags
This commit is contained in:
parent
a46871eaed
commit
d718d84359
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user