[ Version ( since = "0.8" ) ]
public int8 is_file (string path, IsFile? optargs) throws Error
test if a regular file
This returns true
if and only if there is a regular file with the given path
name. Note that it returns false
for other objects like directories.
If the optional flag followsymlinks
is true, then a symlink (or chain of symlinks) that ends with a file also causes the
function to return true.
See also stat.
this |
A GuestfsSession object |
optargs |
a GuestfsIsFile containing optional arguments |
the returned value, or -1 on error |