def _list_files_recursively(path, hidden=False, relative_to_path=False):
    result = set()
    for dirpath, _, filenames in os.walk(path):
        if hidden or not dirpath.startswith('.'):
            for filename in filenames:
                if hidden or not filename.startswith('.'):
                    name = os.path.join(dirpath, filename)
                    if relative_to_path:
                        name = os.path.relpath(name, path)
                    result.add(name)
    return sorted(result)
dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/gui/gui.py/_list_files_recursively/original