mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-11 01:20:08 -04:00
wip
This commit is contained in:
parent
d0acdd8de7
commit
158c318d99
12 changed files with 147 additions and 11444 deletions
|
@ -84,4 +84,14 @@ utils.sleep = function (ms) {
|
|||
}
|
||||
}
|
||||
|
||||
utils.createDir = function (dir) {
|
||||
if (!fs.existsSync(path.resolve(__dirname, dir))) {
|
||||
fs.mkdirSync(path.resolve(__dirname, dir))
|
||||
}
|
||||
}
|
||||
|
||||
utils.writeToFile = function (filename, data) {
|
||||
fs.writeFileSync(path.resolve(__dirname, filename), data)
|
||||
}
|
||||
|
||||
module.exports = utils
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue