TC преди 2 месеца
родител
ревизия
9353b80e12
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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
 		}