'Check the remote host for the specified path, or a file
at the specified path. This function returns 1 if the
path or the file exist on the remote host, and returns 0 if
the path or the file does not exist on the remote host.
:type path: string
:param path: The path to the directory or file that you want to check.
:rtype: integer
:return: If the path or the file exist, the function returns 1.
If the path or the file do not exist on the remote host,
the function returns 0.'

def exists(self, path):

    status = self.run(('[    -a    %s    ]    ||    echo    "FALSE"' % path))
    if status[1].startswith('FALSE'):
        return 0
    return 1
