From ab8d874064d0d9ad298b0630d2ed281fde7e9b94 Mon Sep 17 00:00:00 2001 From: Scott Maxwell Date: Thu, 16 Jan 2014 19:09:13 -0800 Subject: [PATCH] Fix getcwd when _cwd is None --- 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 41e763e..0f55c6a 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -531,7 +531,7 @@ class SFTPClient (BaseSFTP): @since: 1.4 """ - return u(self._cwd) + return self._cwd and u(self._cwd) def putfo(self, fl, remotepath, file_size=0, callback=None, confirm=True): """