FileInfo.getSize

long getSize()

Gets the file's size (in bytes). The size is retrieved through the value of the [gio.types.FILE_ATTRIBUTE_STANDARD_SIZE] attribute and is converted from #guint64 to #goffset before returning the result.

It is an error to call this if the #GFileInfo does not contain [gio.types.FILE_ATTRIBUTE_STANDARD_SIZE].

Returns

a #goffset containing the file's size (in bytes).