is_dir


Description:

[ Version ( since = "0.8" ) ]
public int8 is_dir (string path, IsDir? optargs) throws Error

test if a directory

This returns true if and only if there is a directory with the given path name. Note that it returns false for other objects like files.

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

See also stat.

Parameters:

this

A GuestfsSession object

optargs

a GuestfsIsDir containing optional arguments

Returns:

the returned value, or -1 on error




2022 vala-language.org