imho `and not prefix.startswith('__MACOSX/')` would be preferable.