Only regular files are guaranteed to have a size.
FileInfo.size
long size() @property nothrowGet size property.
Returns
The size in bytes, if available
void size(long propval) @property nothrowSet size property.
Parameters
propval | The size in bytes, if available Only regular files are guaranteed to have a size. |