def exists(self, path):
        import hdfs
        try:
            self.client.status(path)
            return True
        except hdfs.util.HdfsError as e:
            if str(e).startswith('File does not exist: '):
                return False
            else:
                raise e
Returns true if the path exists and false otherwise.
dataset/ETHPy150Open spotify/luigi/luigi/contrib/hdfs/webhdfs_client.py/WebHdfsClient.exists