11 lines
No EOL
5.1 KiB
Python
11 lines
No EOL
5.1 KiB
Python
|
|
from ops.data import OpsClass, OpsField, DszObject, DszCommandObject, cmd_definitions
|
|
import dsz
|
|
if ('gangsterthief' not in cmd_definitions):
|
|
dszgathfilelistentry = OpsClass('filelistentry', {'filesize': OpsField('filesize', dsz.TYPE_INT), 'filesizeondisk': OpsField('filesizeondisk', dsz.TYPE_INT), 'recordindex': OpsField('recordindex', dsz.TYPE_INT), 'parentrecordindex': OpsField('parentrecordindex', dsz.TYPE_INT), 'filename': OpsField('filename', dsz.TYPE_STRING), 'stdcreated': OpsClass('stdcreated', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True), 'filenamecreated': OpsClass('filenamecreated', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True)}, DszObject, single=False)
|
|
dszgathfilestart = OpsClass('filestart', {'size': OpsField('size', dsz.TYPE_INT), 'id': OpsField('id', dsz.TYPE_STRING), 'filename': OpsField('filename', dsz.TYPE_STRING), 'originalname': OpsField('originalname', dsz.TYPE_INT), 'fileinfoentry': OpsClass('fileinfoentry', {'dosflags': OpsField('dosflags', dsz.TYPE_INT), 'filesize': OpsField('filesize', dsz.TYPE_INT), 'filesizeondisk': OpsField('filesizeondisk', dsz.TYPE_INT), 'filenameflags': OpsField('filenameflags', dsz.TYPE_INT), 'recordindex': OpsField('recordindex', dsz.TYPE_INT), 'parentrecordindex': OpsField('parentrecordindex', dsz.TYPE_INT), 'overwrittenpercentage': OpsField('overwrittenpercentage', dsz.TYPE_INT), 'filename': OpsField('filename', dsz.TYPE_STRING), 'attributes': OpsClass('attributes', {'reparsepoint': OpsField('reparsepoint', dsz.TYPE_BOOL), 'read-only': OpsField('read-only', dsz.TYPE_BOOL), 'normal': OpsField('normal', dsz.TYPE_BOOL), 'temporary': OpsField('temporary', dsz.TYPE_BOOL), 'deleted': OpsField('deleted', dsz.TYPE_BOOL), 'offline': OpsField('offline', dsz.TYPE_BOOL), 'notindexed': OpsField('notindexed', dsz.TYPE_BOOL), 'encrypted': OpsField('encrypted', dsz.TYPE_BOOL), 'system': OpsField('system', dsz.TYPE_BOOL), 'compressed': OpsField('compressed', dsz.TYPE_BOOL), 'hidden': OpsField('hidden', dsz.TYPE_BOOL), 'directory': OpsField('directory', dsz.TYPE_BOOL), 'device': OpsField('device', dsz.TYPE_BOOL), 'inuse': OpsField('inuse', dsz.TYPE_BOOL), 'archive': OpsField('archive', dsz.TYPE_BOOL), 'sparse': OpsField('sparse', dsz.TYPE_BOOL)}, DszObject, single=True), 'macefiletimes': OpsClass('macefiletimes', {'filenamemodified': OpsClass('filenamemodified', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True), 'stdcreated': OpsClass('stdcreated', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True), 'filenamecreated': OpsClass('filenamecreated', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True), 'stdaccessed': OpsClass('stdaccessed', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True), 'filenameaccessed': OpsClass('filenameaccessed', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True), 'stdmodified': OpsClass('stdmodified', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True), 'filenameentry': OpsClass('filenameentry', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True), 'stdentry': OpsClass('stdentry', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True)}, DszObject, single=True)}, DszObject, single=True), 'filetimes': OpsClass('filetimes', {'accessed': OpsClass('accessed', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True), 'created': OpsClass('created', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True), 'modified': OpsClass('modified', {'time': OpsField('time', dsz.TYPE_STRING), 'type': OpsField('type', dsz.TYPE_STRING)}, DszObject, single=True)}, DszObject, single=True)}, DszObject, single=True)
|
|
dszgathfilelocalname = OpsClass('filelocalname', {'id': OpsField('id', dsz.TYPE_STRING), 'localname': OpsField('localname', dsz.TYPE_STRING), 'subdir': OpsField('subdir', dsz.TYPE_STRING)}, DszObject, single=True)
|
|
dszgathfilewrite = OpsClass('filewrite', {'id': OpsField('id', dsz.TYPE_STRING), 'bytes': OpsField('bytes', dsz.TYPE_STRING), 'totalbytes': OpsField('totalbytes', dsz.TYPE_STRING)}, DszObject, single=False)
|
|
dszgathfilestop = OpsClass('filestop', {'id': OpsField('id', dsz.TYPE_STRING), 'bytes': OpsField('bytes', dsz.TYPE_STRING), 'totalbytes': OpsField('totalbytes', dsz.TYPE_STRING)}, DszObject, single=True)
|
|
gangsterthiefcommand = OpsClass('gangsterthief', {'filestart': dszgathfilestart, 'filelistentry': dszgathfilelistentry, 'filelocalname': dszgathfilelocalname, 'filewrite': dszgathfilewrite, 'filestop': dszgathfilestop}, DszCommandObject)
|
|
cmd_definitions['gangsterthief'] = gangsterthiefcommand |