Update src/filesystem/implementation.js
This commit is contained in:
parent
398187ba96
commit
6463e0eb62
|
@ -1872,7 +1872,7 @@ function appendFile(fs, context, path, data, options, callback) {
|
|||
}
|
||||
|
||||
if (typeof options === 'object') {
|
||||
if (options.encoding === undefined) {
|
||||
if (!options.encoding) {
|
||||
options.encoding = 'utf8';
|
||||
}
|
||||
if (typeof options.mode === undefined) {
|
||||
|
|
Loading…
Reference in New Issue