Update implementation.js
This commit is contained in:
parent
6463e0eb62
commit
8c7d873c4c
|
@ -1875,10 +1875,10 @@ function appendFile(fs, context, path, data, options, callback) {
|
||||||
if (!options.encoding) {
|
if (!options.encoding) {
|
||||||
options.encoding = 'utf8';
|
options.encoding = 'utf8';
|
||||||
}
|
}
|
||||||
if (typeof options.mode === undefined) {
|
if (!options.mode) {
|
||||||
options.mode = 0o666;
|
options.mode = 0o666;
|
||||||
}
|
}
|
||||||
if (typeof options.flag === undefined) {
|
if (!options.flag) {
|
||||||
options.flag = 'a';
|
options.flag = 'a';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue