Write poster images into "$CONFIG_PATH/posters" (fix #155)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user