[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sshproxy-dev] Changes to sshproxy/SSHproxy/client/sftp.py
From: |
Pierre-Yves Rofes |
Subject: |
[sshproxy-dev] Changes to sshproxy/SSHproxy/client/sftp.py |
Date: |
Thu, 27 Oct 2005 10:14:36 -0400 |
Index: sshproxy/SSHproxy/client/sftp.py
diff -u sshproxy/SSHproxy/client/sftp.py:1.1
sshproxy/SSHproxy/client/sftp.py:1.2
--- sshproxy/SSHproxy/client/sftp.py:1.1 Thu Jul 21 09:43:36 2005
+++ sshproxy/SSHproxy/client/sftp.py Thu Oct 27 14:14:36 2005
@@ -34,7 +34,10 @@
@return: list of filenames.
@rtype: list of string
"""
- t, msg = self._request(CMD_OPENDIR, path)
+ try:
+ t, msg = self._request(CMD_OPENDIR, path)
+ except IOError:
+ return []
if t != CMD_HANDLE:
raise SFTPError('Expected handle')
handle = msg.get_string()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [sshproxy-dev] Changes to sshproxy/SSHproxy/client/sftp.py,
Pierre-Yves Rofes <=