def _scan_tar(tarobj, files):
result = []<EOL>for f in files:<EOL><INDENT>try:<EOL><INDENT>tf = tarobj.extractfile(f.lstrip('<STR_LIT:/>'))<EOL><DEDENT>except (KeyError, file_not_found_error):<EOL><INDENT>continue<EOL><DEDENT>if tf is not None:<EOL><INDENT>result.append(f)<EOL><DEDENT><DEDENT>return result<EOL>
Scans a tar object for specific files.

    Args:
        tarobj (tarfile.TarFile): tar object
        files (List[str]): list of paths to look for

    Returns:
        List[str]: list of the files present (out of the requested paths)