(self, native_dirpath, native_names, dos_mask)
return sorted(
            (trunk, ext) for (trunk, ext) in split
            if dos_name_matches(trunk, trunkmask) and dos_name_matches(ext, extmask)
        )
Apply case-insensitive filename filter to display names.
Apply case-insensitive filename filter to display names.
Apply case - insensitive filename filter to display names .
def _filter_names(self, native_dirpath, native_names, dos_mask):
        """Apply case-insensitive filename filter to display names."""
        dos_mask = dos_mask or b'*.*'
        trunkmask, extmask = dos_splitext(dos_mask)
        all_files = (self._get_dos_display_name(native_dirpath, name) for name in native_names)
        split = [dos_splitext(dos_name) for dos_name in all_files]
        return sorted(
            (trunk, ext) for (trunk, ext) in split
            if dos_name_matches(trunk, trunkmask) and dos_name_matches(ext, extmask)
        )
def _filter_names ( self , native_dirpath , native_names , dos_mask ) : dos_mask = dos_mask or b'*.*' trunkmask , extmask = dos_splitext ( dos_mask ) all_files = ( self . _get_dos_display_name ( native_dirpath , name ) for name in native_names ) split = [ dos_splitext ( dos_name ) for dos_name in all_files ] return sorted ( ( trunk , ext ) for ( trunk , ext ) in split if dos_name_matches ( trunk , trunkmask ) and dos_name_matches ( ext , extmask ) )