| @@ -28,7 +28,6 @@ exports.move = function(src, dst, cb) { | |||
| * Remove directory, deleting its content in the process | |||
| */ | |||
| exports.rmdir = function(dir) { | |||
| console.log("rmdir", dir); | |||
| try { | |||
| fs.accessSync(dir, fs.F_OK) | |||
| } catch (err) { | |||
| @@ -76,7 +76,11 @@ player.onstop = function() { | |||
| httpStream.stop(); | |||
| exports.cleanupFiles.forEach(f => { | |||
| fs.unlink(f, err => { if (err) console.trace(err) }); | |||
| try { | |||
| fs.unlink(f, err => { if (err) console.trace(err) }); | |||
| } catch (err) { | |||
| console.trace(err); | |||
| } | |||
| }); | |||
| exports.cleanupFiles = []; | |||