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

Method __init__

pager_lib/smb/smb2_structs.py:352–365  ·  view source on GitHub ↗
(self, filename, file_attributes = 0,
                 access_mask = 0, share_access = 0, create_disp = 0, create_options = 0,
                 impersonation = SEC_ANONYMOUS,
                 oplock = SMB2_OPLOCK_LEVEL_NONE,
                 create_context_data = b'')

Source from the content-addressed store, hash-verified

350 STRUCTURE_SIZE = struct.calcsize(STRUCTURE_FORMAT)
351
352 def __init__(self, filename, file_attributes = 0,
353 access_mask = 0, share_access = 0, create_disp = 0, create_options = 0,
354 impersonation = SEC_ANONYMOUS,
355 oplock = SMB2_OPLOCK_LEVEL_NONE,
356 create_context_data = b''):
357 self.filename = filename
358 self.file_attributes = file_attributes
359 self.access_mask = access_mask
360 self.share_access = share_access
361 self.create_disp = create_disp
362 self.create_options = create_options
363 self.oplock = oplock
364 self.impersonation = impersonation
365 self.create_context_data = create_context_data or b''
366
367 def initMessage(self, message):
368 Structure.initMessage(self, message)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected