[ Version ( since = "1.0.82" ) ]
public int64 filesize (string file) throws Error
return the size of the file in bytes
This command returns the size of file in bytes.
To get other stats about a file, use stat, lstat, is_dir, is_file etc. To get the size of block devices, use blockdev_getsize64.
this |
A GuestfsSession object |
the returned value, or -1 on error |