mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Selectable wall preview type (#510)
* Add optional image preview generation * Add setting for video preview encoding preset
This commit is contained in:
@@ -28,11 +28,8 @@ func FileExists(path string) (bool, error) {
|
||||
_, err := os.Stat(path)
|
||||
if err == nil {
|
||||
return true, nil
|
||||
} else if os.IsNotExist(err) {
|
||||
return false, err
|
||||
} else {
|
||||
panic(err)
|
||||
}
|
||||
return false, err
|
||||
}
|
||||
|
||||
// DirExists returns true if the given path exists and is a directory
|
||||
|
||||
Reference in New Issue
Block a user