This commit is contained in:
Robey Pointer 2009-07-19 20:17:47 -07:00
parent 0840d8dd28
commit b4220657be
1 changed files with 1 additions and 1 deletions

View File

@ -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)