You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
1 year ago
..
helper.go add path prefix to ObjectStorage.Iterator (#23332) 1 year ago
helper_test.go add path prefix to ObjectStorage.Iterator (#23332) 1 year ago
local.go fix minio storage iterator path (#24691) 1 year ago
local_test.go fix minio storage iterator path (#24691) 1 year ago
minio.go fix minio storage iterator path (#24691) 1 year ago
minio_test.go fix minio storage iterator path (#24691) 1 year ago
storage.go add path prefix to ObjectStorage.Iterator (#23332) 1 year ago
storage_test.go fix minio storage iterator path (#24691) 1 year ago