Explorar o código

Fixed dir bug

TC hai 2 meses
pai
achega
9353b80e12
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 		}