mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
Update file.js
This commit is contained in:
@@ -40,7 +40,7 @@ file.create = function (filepath, data = '') {
|
||||
|
||||
return file
|
||||
.createDir(dir)
|
||||
.then(() => fs.writeFile(filepath, data, { encoding: 'utf8', flag: 'w' }))
|
||||
.then(() => file.write(filepath, data))
|
||||
.catch(console.error)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user