Update file.js

This commit is contained in:
Aleksandr Statciuk 2022-01-15 18:27:50 +03:00
parent a07c330a43
commit 79658cbe3f

View file

@ -40,7 +40,7 @@ file.create = function (filepath, data = '') {
return file return file
.createDir(dir) .createDir(dir)
.then(() => fs.writeFile(filepath, data, { encoding: 'utf8', flag: 'w' })) .then(() => file.write(filepath, data))
.catch(console.error) .catch(console.error)
} }