[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sshproxy-dev] Changes to sshproxy/SSHproxy/server/sftp.py
From: |
Pierre-Yves Rofes |
Subject: |
[sshproxy-dev] Changes to sshproxy/SSHproxy/server/sftp.py |
Date: |
Thu, 27 Oct 2005 10:14:37 -0400 |
Index: sshproxy/SSHproxy/server/sftp.py
diff -u sshproxy/SSHproxy/server/sftp.py:1.1
sshproxy/SSHproxy/server/sftp.py:1.2
--- sshproxy/SSHproxy/server/sftp.py:1.1 Thu Jul 21 09:43:36 2005
+++ sshproxy/SSHproxy/server/sftp.py Thu Oct 27 14:14:36 2005
@@ -142,6 +142,25 @@
except IOError:
return paramiko.SFTP_NO_SUCH_FILE
+ def rmdir(self, path):
+ try:
+ self.client.rmdir(path)
+ return paramiko.SFTP_OK
+ except IOError:
+ return paramiko.SFTP_NO_SUCH_FILE
+
+ def mkdir(self, path, *args, **kwargs):
+ try:
+ print ("mkdir...")
+ print args, kwargs
+ args = [args[0].st_mode]
+ self.client.mkdir(path, *args, **kwargs)
+ print ("mkdir OK\n")
+ return paramiko.SFTP_OK
+ except IOError:
+ print 'IOERROR mkdir'
+ return paramiko.SFTP_NO_SUCH_FILE
+
class SFTPServer(paramiko.SFTPServer):
def __init__(self, channel, name, server, sftp_si=SFTPServerInterface,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [sshproxy-dev] Changes to sshproxy/SSHproxy/server/sftp.py,
Pierre-Yves Rofes <=