Write poster images into "$CONFIG_PATH/posters" (fix #155)

This commit is contained in:
Feross Aboukhadijeh
2016-03-19 16:19:15 -07:00
parent 0c9e2cc27e
commit 684fa7dee7
4 changed files with 11 additions and 8 deletions

View File

@@ -5,15 +5,13 @@
* Useful for developers.
*/
var applicationConfigPath = require('application-config-path')
var config = require('../config')
var os = require('os')
var path = require('path')
var pathExists = require('path-exists')
var rimraf = require('rimraf')
var tmpPath = path.join(pathExists.sync('/tmp') ? '/tmp' : os.tmpDir(), 'webtorrent')
var configPath = applicationConfigPath(config.APP_NAME)
rimraf.sync(config.CONFIG_PATH)
rimraf.sync(configPath)
var tmpPath = path.join(pathExists.sync('/tmp') ? '/tmp' : os.tmpDir(), 'webtorrent')
rimraf.sync(tmpPath)