MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / listSnapshots

Method listSnapshots

pager_lib/smb/SMBProtocol.py:209–225  ·  view source on GitHub ↗

Retrieve a list of available snapshots (a.k.a. shadow copies) for *path*. Note that snapshot features are only supported on Windows Vista Business, Enterprise and Ultimate, and on all Windows 7 editions. :param string/unicode service_name: the name of the shared folder for

(self, service_name, path, timeout = 30)

Source from the content-addressed store, hash-verified

207 return d
208
209 def listSnapshots(self, service_name, path, timeout = 30):
210 """
211 Retrieve a list of available snapshots (a.k.a. shadow copies) for *path*.
212
213 Note that snapshot features are only supported on Windows Vista Business, Enterprise and Ultimate, and on all Windows 7 editions.
214
215 :param string/unicode service_name: the name of the shared folder for the *path*
216 :param string/unicode path: path relative to the *service_name* where we are interested in the list of available snapshots
217 :return: A *twisted.internet.defer.Deferred* instance. The callback function will be called with a list of python *datetime.DateTime*
218 instances in GMT/UTC time zone
219 """
220 if not self.instance:
221 raise NotConnectedError('Not connected to server')
222
223 d = defer.Deferred()
224 self.instance._listSnapshots(service_name, path, d.callback, d.errback, timeout = timeout)
225 return d
226
227 def getAttributes(self, service_name, path, timeout = 30):
228 """

Callers

nothing calls this directly

Calls 1

NotConnectedErrorClass · 0.70

Tested by

no test coverage detected