Selaa lähdekoodia

Fixed dir bug

TC 2 viikkoa sitten
vanhempi
commit
9353b80e12
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      mod/bokofs/bokothumb/bokodir.go

+ 1 - 1
mod/bokofs/bokothumb/bokodir.go

@@ -96,7 +96,7 @@ func (r *RouterDir) OpenFile(ctx context.Context, name string, flag int, perm os
 		}
 	} else {
 		//Requested a file path. Render the thumbnail
-		outputFolder := filepath.Join(r.ThumbStore, name)
+		outputFolder := filepath.Join(r.ThumbStore, filepath.Dir(name))
 		if err := os.MkdirAll(filepath.Dir(outputFolder), 0755); err != nil {
 			return nil, err
 		}