blob: d5facd0ded8fd36f6ab2c0499d59447102180d12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
var mv = require('mv'),
fs = require('fs'),
path = require('path');
var target = path.resolve(__dirname + '../' + '../node_modules/youtube-dl/lib/youtube-dl.js');
fs.unlink(target, function (err) {
'use strict';
if (err !== null) { return console.log(err.stack); }
mv(path.resolve(__dirname + '../' + '../.temp/youtube-dl.js'), target, function error(err) {
if (err !== null) { console.log(err); }
});
});
|