Skip to content

Commit

Permalink
Update implementation.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MuchtarSalimov committed Oct 17, 2018
1 parent 6463e0e commit 8c7d873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filesystem/implementation.js
Expand Up @@ -1875,10 +1875,10 @@ function appendFile(fs, context, path, data, options, callback) {
if (!options.encoding) {
options.encoding = 'utf8';
}
if (typeof options.mode === undefined) {
if (!options.mode) {
options.mode = 0o666;
}
if (typeof options.flag === undefined) {
if (!options.flag) {
options.flag = 'a';
}
}
Expand Down

0 comments on commit 8c7d873

Please sign in to comment.