Skip to content

Commit d56982a

Browse files
committed
where does it have to be set?
1 parent ddf0c99 commit d56982a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sftpretty/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,7 @@ def chdir(self, remotepath):
11111111
:raises: IOError, if path does not exist
11121112
'''
11131113
with self._sftp_channel() as channel:
1114+
self._cache.cwd = drivedrop(channel.normalize('.'))
11141115
channel.chdir(drivedrop(remotepath))
11151116
self._cache.cwd = drivedrop(channel.normalize('.'))
11161117
self._default_path = self._cache.cwd

0 commit comments

Comments
 (0)