def StatEntryFromStatPathSpec(stat, ext_attrs):
    pathspec = rdf_paths.PathSpec(pathtype=rdf_paths.PathSpec.PathType.OS, path=LocalPathToCanonicalPath(stat.GetPath()), path_options=rdf_paths.PathSpec.Options.CASE_LITERAL)
    return StatEntryFromStat(stat, pathspec, ext_attrs=ext_attrs)
def StatEntryFromStatPathSpec(stat, ext_attrs):
    pathspec = rdf_paths.PathSpec(pathtype=rdf_paths.PathSpec.PathType.OS, path=LocalPathToCanonicalPath(stat.GetPath()), path_options=rdf_paths.PathSpec.Options.CASE_LITERAL)
    return StatEntryFromStat(stat, pathspec, ext_attrs=ext_attrs)