exists


Description:

[ Version ( since = "0.8" ) ]
public int8 exists (string path) throws Error

test if file or directory exists

This returns true if and only if there is a file, directory (or anything) with the given path name.

See also is_file, is_dir, stat.

Parameters:

this

A GuestfsSession object

Returns:

the returned value, or -1 on error