mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Don't delete downloads directory at startup if generated not set (#1098)
* Don't empty directories if generated not set * Rename downloads to download_stage
This commit is contained in:
@@ -67,8 +67,11 @@ func Initialize() *singleton {
|
||||
instance.RefreshConfig()
|
||||
|
||||
// clear the downloads and tmp directories
|
||||
utils.EmptyDir(instance.Paths.Generated.Downloads)
|
||||
utils.EmptyDir(instance.Paths.Generated.Tmp)
|
||||
// #1021 - only clear these directories if the generated folder is non-empty
|
||||
if config.GetGeneratedPath() != "" {
|
||||
utils.EmptyDir(instance.Paths.Generated.Downloads)
|
||||
utils.EmptyDir(instance.Paths.Generated.Tmp)
|
||||
}
|
||||
|
||||
initFFMPEG()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user