Resolve suitable defaults from the archive. Resolve the date_time, compression attributes, and external attributes to suitable defaults as used by :method:`ZipFile.writestr`. Return self.
zipfile/ZipInfo._for_archive
ZipInfo._for_archive