import tarfile
from pathlib import Path


def _list_files(path):
    """Return files in a .tar.gz file, ignoring hidden files
    """
    with tarfile.open(path) as tar:
        return set(f for f in tar.getnames()
                   if not Path(f).name.startswith('.'))