zipfile.is_zipfile(filename)
Returns True
if filename is a valid ZIP file based on its magic number, otherwise returns False
. filename may be a file or file-like object too.
Changed in version 3.1: Support for file and file-like objects.
zipfile.is_zipfile(filename)
Returns True
if filename is a valid ZIP file based on its magic number, otherwise returns False
. filename may be a file or file-like object too.
Changed in version 3.1: Support for file and file-like objects.
Please login to continue.