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 23, 2025
1 parent 2784240 commit c2db822
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3998,6 +3998,8 @@ def CheckCompressionSubType(infile, formatspecs=__file_format_dict__, closefp=Tr
else:
return False
return False
elif(IsNestedDict(formatspecs) and compresscheck in formatspecs):
return formatspecs[compresscheck]['format_magic']
elif(IsSingleDict(formatspecs) and compresscheck == formatspecs['format_magic']):
return formatspecs['format_magic']
elif(compresscheck == "tarfile"):
Expand Down

0 comments on commit c2db822

Please sign in to comment.