mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
Update file.js
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user