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
{{ message }}
This repository was archived by the owner on Oct 26, 2024. It is now read-only.
I ran into a case where the get_file_size function in aniDBfileInfo.py is returning a value of 0 for a file that is 280MB in size. When I changed the following code:
f = open(path)
size = len(f.read())
to:
size = os.path.getsize(path)
I now get the correct file size.
Also wouldn't "size = len(f.read())" be slow are very large files?
I ran into a case where the get_file_size function in aniDBfileInfo.py is returning a value of 0 for a file that is 280MB in size. When I changed the following code:
to:
I now get the correct file size.
Also wouldn't "size = len(f.read())" be slow are very large files?