Package libssh2 :: Module sftp
[frames] | no frames]

Source Code for Module libssh2.sftp

  1  # 
  2  # pylibssh2 - python bindings for libssh2 library 
  3  # 
  4  # Copyright (C) 2010 Wallix Inc. 
  5  # 
  6  # This library is free software; you can redistribute it and/or modify it 
  7  # under the terms of the GNU Lesser General Public License as published by the 
  8  # Free Software Foundation; either version 2.1 of the License, or (at your 
  9  # option) any later version. 
 10  # 
 11  # This library is distributed in the hope that it will be useful, but WITHOUT 
 12  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
 13  # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 
 14  # details. 
 15  # 
 16  # You should have received a copy of the GNU Lesser General Public License 
 17  # along with this library; if not, write to the Free Software Foundation, Inc., 
 18  # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
 19  # 
 20  """ 
 21  Abstraction for libssh2 L{Sftp} object 
 22  """ 
 23   
24 -class SftpException(Exception):
25 """ 26 Exception raised when L{Sftp} actions fails. 27 """ 28 pass
29
30 -class Sftp(object):
31 """ 32 Sftp object 33 """
34 - def __init__(self):
35 """ 36 Create a new Sftp object. 37 """ 38 pass
39
40 - def close(self):
41 """ 42 """ 43 raise NotImplementedError()
44
45 - def opendir(self):
46 """ 47 """ 48 raise NotImplementedError()
49
50 - def readdir(self):
51 """ 52 """ 53 raise NotImplementedError()
54
55 - def listdir(self):
56 """ 57 """ 58 raise NotImplementedError()
59
60 - def open(self):
61 """ 62 """ 63 raise NotImplementedError()
64 65
66 - def shutdown(self):
67 """ 68 """ 69 raise NotImplementedError()
70
71 - def read(self):
72 """ 73 """ 74 raise NotImplementedError()
75
76 - def write(self):
77 """ 78 """ 79 raise NotImplementedError()
80
81 - def tell(self):
82 """ 83 """ 84 raise NotImplementedError()
85
86 - def seek(self):
87 """ 88 """ 89 raise NotImplementedError()
90 95
96 - def rename(self):
97 """ 98 """ 99 raise NotImplementedError()
100
101 - def mkdir(self):
102 """ 103 """ 104 raise NotImplementedError()
105
106 - def rmdir(self):
107 """ 108 """ 109 raise NotImplementedError()
110
111 - def realpath(self):
112 """ 113 """ 114 raise NotImplementedError()
115 120
121 - def getstat(self):
122 """ 123 """ 124 raise NotImplementedError()
125
126 - def setstat(self):
127 """ 128 """ 129 raise NotImplementedError()
130