Kaynağa Gözat

Fixed dir bug

TC 5 gün önce
ebeveyn
işleme
9353b80e12
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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
 		}