How to get file size using Python Box API
AnsweredHi,
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?
Please sign in to leave a comment.
Comments
1 comment