def exists(self, remote_path):
        try:
            self.sftp.lstat(remote_path).st_mode
        except IOError:
            return False

        return True
Validate whether a remote file or directory exists.
dataset/ETHPy150Open StackStorm/st2/st2actions/st2actions/runners/ssh/paramiko_ssh.py/ParamikoSSHClient.exists