If I have a zipfile.ZipFile
object, how can I determine the file path of the zip file from the object?
a = zipfile.ZipFile('C:\\path\\zipfile.zip')
a.get_file_path()
where get_file_path()
should return 'C:\\path\\zipfile.zip'
.
You can access it using filename
attribute:
a.filename
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With