Skip to content

Commit

Permalink
Update pycatfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Jan 30, 2025
1 parent 4617013 commit 73ac554
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5124,7 +5124,7 @@ def PackCatFileFromDirList(infiles, outfile, dirlistfromtxt=False, fmttype="auto


def PackCatFileFromTarFile(infile, outfile, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, checksumtype=["crc32", "crc32", "crc32"], extradata=[], formatspecs=__file_format_dict__, verbose=False, returnfp=False):
if(IsNestedDict(formatspecs) and fmttype=="auto" and
if(IsNestedDict(formatspecs) and fmttype=="auto" and
(outfile != "-" and outfile is not None and not hasattr(outfile, "read") and not hasattr(outfile, "write"))):
get_in_ext = os.path.splitext(outfile)
tmpfmt = GetKeyByFormatExtension(get_in_ext[1], formatspecs=__file_format_multi_dict__)
Expand Down Expand Up @@ -6028,7 +6028,7 @@ def PackCatFileFromSevenZipFile(infile, outfile, fmttype="auto", compression="au

if(py7zr_support):
def PackCatFileFromSevenZipFile(infile, outfile, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, checksumtype=["crc32", "crc32", "crc32"], extradata=[], formatspecs=__file_format_dict__, verbose=False, returnfp=False):
if(IsNestedDict(formatspecs) and fmttype=="auto" and
if(IsNestedDict(formatspecs) and fmttype=="auto" and
(outfile != "-" and outfile is not None and not hasattr(outfile, "read") and not hasattr(outfile, "write"))):
get_in_ext = os.path.splitext(outfile)
tmpfmt = GetKeyByFormatExtension(get_in_ext[1], formatspecs=__file_format_multi_dict__)
Expand Down Expand Up @@ -8912,7 +8912,7 @@ def SevenZipFileToArrayAlt(infile, fmttype=__file_format_default__, listonly=Fal

if(py7zr_support):
def SevenZipFileToArrayAlt(infile, fmttype=__file_format_default__, listonly=False, contentasfile=True, checksumtype=["crc32", "crc32", "crc32"], extradata=[], formatspecs=__file_format_dict__, verbose=False):
if(IsNestedDict(formatspecs) and fmttype in formatspecs):
if(IsNestedDict(formatspecs) and fmttype in formatspecs):
formatspecs = formatspecs[fmttype]
elif(IsNestedDict(formatspecs) and fmttype not in formatspecs):
fmttype = __file_format_default__
Expand Down

0 comments on commit 73ac554

Please sign in to comment.