I know that you can get the size in bytes of a file in a ZIP file using the .file_size method But is there any what I can get the size of a folder instead?
Ex:
import zipfile, os
os.chdir('C:\\')
zp= zipfile.ZipFile('example.zip')
spamInfo = zp.getinfo('spam.txt') #Here, Instead of a file I'd like to put a folder
spamInfo.file_size
zp.close()