def METHOD_NAME(self, local_path: v2.LocalSyncPath):
    if self.scan_policies_manager.should_exclude_file_version(
        _translate_local_path_to_file(local_path).latest_version()
    ):
        return True
    return self.scan_policies_manager.should_exclude_file(local_path.relative_path)