How to get file size using Python Box API
RéponduHi,
To get the file size, i am using the parameter size
for files in folder_1: if files.type != 'folder': print(files.size)
But i am getting an error saying
AttributeError: 'File' object has no attribute 'size'
This page lists size as an attribute the get the file size. What am i missing?
Vous devez vous connecter pour laisser un commentaire.
Commentaires
1 commentaire