You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking at this line and either my understanding of Python is lacking, or it does len(file.read()), effectively reading the entire contents of a file into a string variable, then measuring its length, and discarding it.
Shouldn't there be more effective and less memory-consuming ways of getting a file size?