os.Path.gid

The os.Path.gid method is used to return the UNIX group id of the specified file. The syntax of the function is as follows:

 

CALL os.Path.gid(f_name) RETURNING group_id

 

where:

·         fname = a string containing the file name,

·         group_id = an integer standing for the group id.

 

Usage

In case the function fails to get the user id, it returns the negative integer -1.