It seems that DirEntry's f.stat().st_size can return values larger than 2147483647 for the file size, which - in my case - is correct. But when I try to store it in a Gtk.ListStore which has the corresponding column set to int, I get this 'Overflow' error.
How do I solve this? Is int in ListStore limited to 4 bytes?
BTW, I'm using Python 3.9.5 and GUdev 237.
self.file_store = Gtk.ListStore(str, # File name
int, # File size
str) # Mod time, as YYYY/MM/DD hh:mm:ss
...
self.file_store.append(
(f.name,
f.stat().st_size,
ftime))
Edit: I solved the problem by changing the column type for filesize to string... Not entirely elegant though.