Skip to content

Commit

Permalink
check metakey first
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Feb 27, 2024
1 parent 71fe6ff commit 75bf56b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/services/webdav/lister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ impl oio::PageList for WebdavLister {
//
// AFAIK, this content type is only used by jfrog artifactory. And this file is
// a shadow file that can't be stat, so we mark it as complete.
if meta.content_type() == Some("application/x-checksum") {
if meta.contains_metakey(Metakey::ContentType)
&& meta.content_type() == Some("application/x-checksum")
{
continue;
}

Expand Down

0 comments on commit 75bf56b

Please sign in to comment.