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

Method sendEnumSnapshots

pager_lib/smb/base.py:1713–1721  ·  view source on GitHub ↗
(tid, fid)

Source from the content-addressed store, hash-verified

1711 errback(OperationFailure('Failed to list snapshots %s on %s: Unable to open file/directory' % ( path, service_name ), messages_history))
1712
1713 def sendEnumSnapshots(tid, fid):
1714 m = SMB2Message(SMB2IoctlRequest(fid,
1715 ctlcode = 0x00144064, # FSCTL_SRV_ENUMERATE_SNAPSHOTS
1716 flags = 0x0001,
1717 in_data = b''))
1718 m.tid = tid
1719 self._sendSMBMessage(m)
1720 self.pending_requests[m.mid] = _PendingRequest(m.mid, int(time.time()) + timeout, enumSnapshotsCB, errback, tid = tid, fid = fid)
1721 self._pushToArray(messages_history, m)
1722
1723 def enumSnapshotsCB(enum_message, **kwargs):
1724 self._pushToArray(messages_history, enum_message)

Callers

nothing calls this directly

Calls 6

_pushToArrayMethod · 0.95
SMB2MessageClass · 0.85
SMB2IoctlRequestClass · 0.85
_PendingRequestClass · 0.85
SMBMessageClass · 0.85

Tested by

no test coverage detected