Remove downloads folder in metadata dir

This commit is contained in:
advplyr 2023-04-03 17:28:55 -05:00
parent 14ee17de47
commit ef954ee68f
2 changed files with 0 additions and 19 deletions

View file

@ -15,8 +15,6 @@ class AbMergeManager {
this.taskManager = taskManager
this.itemsCacheDir = Path.join(global.MetadataPath, 'cache/items')
this.downloadDirPath = Path.join(global.MetadataPath, 'downloads')
this.downloadDirPathExist = false
this.pendingTasks = []
}
@ -29,22 +27,6 @@ class AbMergeManager {
return this.removeTask(task, true)
}
async ensureDownloadDirPath() { // Creates download path if necessary and sets owner and permissions
if (this.downloadDirPathExist) return
var pathCreated = false
if (!(await fs.pathExists(this.downloadDirPath))) {
await fs.mkdir(this.downloadDirPath)
pathCreated = true
}
if (pathCreated) {
await filePerms.setDefault(this.downloadDirPath)
}
this.downloadDirPathExist = true
}
async startAudiobookMerge(user, libraryItem, options = {}) {
const task = new Task()