Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _path_exists(self, path):
if path_util.is_hdfs_path(path):
return self._hadoop_client().fs_test(path, self._hadoop_config)
return os.path.exists(path)