def isdir(self, path):
result = True<EOL>try:<EOL><INDENT>self.sftp_client.lstat(path)<EOL><DEDENT>except FileNotFoundError:<EOL><INDENT>result = False<EOL><DEDENT>return result<EOL>
Return true if the path refers to an existing directory.

        Parameters
        ----------
        path : str
            Path of directory on the remote side to check.