gitea/modules/storage
FuXiaoHei 61ad4c607b
fix minio storage iterator path (#24691)
minio storage iterator shows different behavior with local fs iterator.

in local fs storage:

``` go
s.IterateObjects("prefix", func(path,obj)
     println(path) // show "prefix/xxx.file"
})
```

in minio storage:

```go
s.IterateObjects("prefix", func(path,obj)
     println(path) // show "xxx.file"
})
```

I think local fs is correct, minio use wrong `basePath` to trim storage
path prefix.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
2023-05-13 22:33:25 +00:00
..
helper.go
helper_test.go
local.go fix minio storage iterator path (#24691) 2023-05-13 22:33:25 +00:00
local_test.go fix minio storage iterator path (#24691) 2023-05-13 22:33:25 +00:00
minio.go fix minio storage iterator path (#24691) 2023-05-13 22:33:25 +00:00
minio_test.go fix minio storage iterator path (#24691) 2023-05-13 22:33:25 +00:00
storage.go
storage_test.go fix minio storage iterator path (#24691) 2023-05-13 22:33:25 +00:00