def exists(self, path, **kwargs):
        """Return true if the given path exists"""
        try:
            self.get_file_status(path, **kwargs)
            return True
        except HdfsFileNotFoundException:
            return False
def exists ( self , path , ** kwargs ) : try : self . get_file_status ( path , ** kwargs ) return True except HdfsFileNotFoundException : return False
Return true if the given path exists