Commit Graph

2 Commits (ba4d0b8ffbd78473273800f586ae8bde55cda6c5)

Author SHA1 Message Date
FuXiaoHei cdc9e91750
add path prefix to ObjectStorage.Iterator ()
Support to iterator subdirectory in ObjectStorage for
ObjectStorage.Iterator method.

It's required for https://github.com/go-gitea/gitea/pull/22738 to make
artifact files cleanable.

---------

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Jason Song 67881ae99a
Skip initing disabled storages ()
If `Attachment` or `Packages` are disabled, we don't have to init the
storages for them.