Procházet zdrojové kódy

Fixed a potential bug in thumbnail generator

Toby Chui před 3 roky
rodič
revize
c1035c3f01
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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