Skip to content

Commit bd4d6ec

Browse files
author
Kazuki Suzuki Przyborowski
authored
Add files via upload
1 parent 407c0a6 commit bd4d6ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

catfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@
119119
fnamelist = [fname, fnamemagic, fnamelower, fnamelen, fnamehex, getargs.delimiter, getargs.formatver, fnamesty, fnamelst, fnameino];
120120

121121
# Determine the primary action based on user input
122-
actions = ['pack', 'unpack', 'list', 'repack', 'validate'];
122+
actions = ['create', 'extract', 'list', 'repack', 'validate'];
123123
active_action = next((action for action in actions if getattr(getargs, action)), None);
124124

125125
# Execute the appropriate functions based on determined actions and arguments
126126
if active_action:
127-
if active_action=='pack':
127+
if active_action=='create':
128128
if getargs.convert:
129129
checkcompressfile = pycatfile.CheckCompressionSubType(getargs.input, fnamelist, True);
130130
if(checkcompressfile=="catfile"):
@@ -146,7 +146,7 @@
146146
sys.exit(1);
147147
else:
148148
pycatfile.RePackArchiveFile(getargs.input, getargs.output, getargs.compression, getargs.level, False, 0, 0, getargs.checksum, getargs.skipchecksum, [], fnamelist, getargs.verbose, False);
149-
elif active_action=='unpack':
149+
elif active_action=='extract':
150150
if getargs.convert:
151151
checkcompressfile = pycatfile.CheckCompressionSubType(getargs.input, fnamelist, True);
152152
tempout = BytesIO();

0 commit comments

Comments
 (0)