mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Fix clean and scan bugs (#846)
This commit is contained in:
@@ -45,10 +45,11 @@ func CalculateMD5(path string) (string, error) {
|
||||
}
|
||||
|
||||
func FileExists(path string) bool {
|
||||
_, err := openSourceImage(path)
|
||||
f, err := openSourceImage(path)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user