diff --git a/src/pxar/exclude_pattern.rs b/src/pxar/exclude_pattern.rs index 7a3b3aaa..eb37fbb5 100644 --- a/src/pxar/exclude_pattern.rs +++ b/src/pxar/exclude_pattern.rs @@ -174,6 +174,10 @@ impl PxarExcludePattern { res = MatchType::None; } + if !is_dir && (res == MatchType::PartialInclude || res == MatchType::PartialExclude) { + res = MatchType::None; + } + res } }