From b4220657befbbd12831d3f9bd438ad7cf466c39b Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Sun, 19 Jul 2009 20:17:47 -0700 Subject: [PATCH] oops. --- paramiko/sftp_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index aff88ae..5f8f3a5 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -512,7 +512,7 @@ class SFTPClient (BaseSFTP): @since: 1.4 """ - if not S_ISDIR(self.stat(path).st_mode): + if not stat.S_ISDIR(self.stat(path).st_mode): raise SFTPError(errno.ENOTDIR, "%s: %s" % (os.strerror(errno.ENOTDIR), path)) self._cwd = self.normalize(path)