[ Version ( since = "1.5.10" ) ]
public int8 is_chardev (string path, IsChardev? optargs) throws Error
test if character device
This returns true
if and only if there is a character device with the given path
name.
If the optional flag followsymlinks
is true, then a symlink (or chain of symlinks) that ends with a chardev also causes the
function to return true.
See also stat.
this |
A GuestfsSession object |
optargs |
a GuestfsIsChardev containing optional arguments |
the returned value, or -1 on error |