from_file

classmethod AESZipInfo.from_file(filename, arcname=None, *, strict_timestamps=True)

Construct an appropriate ZipInfo for a file on the filesystem.

filename should be the path to a file or directory on the filesystem.

arcname is the name which it will have within the archive (by default, this will be the same as filename, but without a drive letter and with leading path separators removed).