Explorar el Código

Fixed dir bug

TC hace 2 semanas
padre
commit
9353b80e12
Se han modificado 1 ficheros con 1 adiciones y 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
 		}