Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels