Kaynağa Gözat

Fixed a potential bug in thumbnail generator

Toby Chui 3 yıl önce
ebeveyn
işleme
c1035c3f01
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      mod/filesystem/metadata/metadata.go

+ 1 - 1
mod/filesystem/metadata/metadata.go

@@ -344,7 +344,7 @@ func (rh *RenderHandler) HandleLoadCache(w http.ResponseWriter, r *http.Request,
 //Check if the cache for a file exists
 func CacheExists(fsh *filesystem.FileSystemHandler, file string) bool {
 	cacheFolder := filepath.ToSlash(filepath.Join(filepath.Clean(filepath.Dir(file)), "/.metadata/.cache/") + "/")
-	return fsh.FileSystemAbstraction.FileExists(cacheFolder+filepath.Base(file)+".jpg") || fileExists(cacheFolder+filepath.Base(file)+".png")
+	return fsh.FileSystemAbstraction.FileExists(cacheFolder+filepath.Base(file)+".jpg") || fsh.FileSystemAbstraction.FileExists(cacheFolder+filepath.Base(file)+".png")
 }
 
 //Get cache path for this file, given realpath