Fix typo in error log messages for retrieve _retrieveFileFromOffset_SMB2() method
Michael Teo
5 years ago
918 | 918 |
fid = create_message.payload.fid, file_attributes = create_message.payload.file_attributes)
|
919 | 919 |
messages_history.append(m)
|
920 | 920 |
else:
|
921 | |
errback(OperationFailure('Failed to list %s on %s: Unable to open file' % ( path, service_name ), messages_history))
|
|
921 |
errback(OperationFailure('Failed to retrieve %s on %s: Unable to open file' % ( path, service_name ), messages_history))
|
922 | 922 |
|
923 | 923 |
def infoCB(info_message, **kwargs):
|
924 | 924 |
messages_history.append(info_message)
|
|
935 | 935 |
remaining_len = file_len - starting_offset
|
936 | 936 |
sendRead(info_message.tid, kwargs['fid'], starting_offset, remaining_len, 0, kwargs['file_attributes'])
|
937 | 937 |
else:
|
938 | |
errback(OperationFailure('Failed to list %s on %s: Unable to retrieve information on file' % ( path, service_name ), messages_history))
|
|
938 |
errback(OperationFailure('Failed to retrieve %s on %s: Unable to retrieve information on file' % ( path, service_name ), messages_history))
|
939 | 939 |
|
940 | 940 |
def sendRead(tid, fid, offset, remaining_len, read_len, file_attributes):
|
941 | 941 |
read_count = min(self.max_read_size, remaining_len)
|
912 | 912 |
fid = create_message.payload.fid, file_attributes = create_message.payload.file_attributes)
|
913 | 913 |
messages_history.append(m)
|
914 | 914 |
else:
|
915 | |
errback(OperationFailure('Failed to list %s on %s: Unable to open file' % ( path, service_name ), messages_history))
|
|
915 |
errback(OperationFailure('Failed to retrieve %s on %s: Unable to open file' % ( path, service_name ), messages_history))
|
916 | 916 |
|
917 | 917 |
def infoCB(info_message, **kwargs):
|
918 | 918 |
messages_history.append(info_message)
|
|
929 | 929 |
remaining_len = file_len - starting_offset
|
930 | 930 |
sendRead(info_message.tid, kwargs['fid'], starting_offset, remaining_len, 0, kwargs['file_attributes'])
|
931 | 931 |
else:
|
932 | |
errback(OperationFailure('Failed to list %s on %s: Unable to retrieve information on file' % ( path, service_name ), messages_history))
|
|
932 |
errback(OperationFailure('Failed to retrieve %s on %s: Unable to retrieve information on file' % ( path, service_name ), messages_history))
|
933 | 933 |
|
934 | 934 |
def sendRead(tid, fid, offset, remaining_len, read_len, file_attributes):
|
935 | 935 |
read_count = min(self.max_read_size, remaining_len)
|