is_fifo


Description:

[ Version ( since = "1.5.10" ) ]
public int8 is_fifo (string path, IsFifo? optargs) throws Error

test if FIFO (named pipe)

This returns true if and only if there is a FIFO (named pipe) with the given path name.

If the optional flag followsymlinks is true, then a symlink (or chain of symlinks) that ends with a FIFO also causes the function to return true.

See also stat.

Parameters:

this

A GuestfsSession object

optargs

a GuestfsIsFifo containing optional arguments

Returns:

the returned value, or -1 on error