acl_get_file


Description:

[ Version ( since = "1.19.63" ) ]
public string acl_get_file (string path, string acltype) throws Error

get the POSIX ACL attached to a file

This function returns the POSIX Access Control List (ACL) attached to path. The ACL is returned in "long text form" (see acl(5)).

The acltype parameter may be:

access Return the ordinary (access) ACL for any file, directory or other filesystem object.

default Return the default ACL. Normally this only makes sense if path is a directory.

This function depends on the feature "acl". See also feature_available.

Parameters:

this

A GuestfsSession object

Returns:

the returned string, or NULL on error