Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPSTREAM distribution/distribution: 4485: avoid appending directory a…
…s file path in s3 driver Walk when a directory is empty, the s3 api lists it with a trailing slash. this causes the path to be appended twice to the walkInfo slice, causing purge uploads path transformations to panic when the `_uploads` is emtpy. this adds a check for file paths ending on slash, and do not append those as regular files to the walkInfo slice. fixes distribution#4358 Signed-off-by: Flavian Missi <fmissi@redhat.com>
- Loading branch information