os.Path.gid

Returns the UNIX™ group id of a file.

Syntax

os.Path.gid(
   fname STRING)
  RETURNING id INTEGER
  1. fname is the name of the file.
  2. id is the group id.

Usage

This method can only be used on UNIX!

Function returns -1 if it fails to get the user id.