Close the FileId
(self, FileId)
| 876 | return resp[SMB2_Create_Response].FileId |
| 877 | |
| 878 | def close_request(self, FileId): |
| 879 | """ |
| 880 | Close the FileId |
| 881 | """ |
| 882 | pkt = SMB2_Close_Request(FileId=FileId) |
| 883 | resp = self.ins.sr1(pkt, verbose=0, timeout=self.timeout) |
| 884 | if not resp: |
| 885 | raise ValueError("CloseRequest timed out !") |
| 886 | if SMB2_Close_Response not in resp: |
| 887 | raise ValueError("Failed CloseRequest ! %s" % resp.NTStatus) |
| 888 | |
| 889 | def read_request(self, FileId, Length, Offset=0): |
| 890 | """ |
no test coverage detected