os.Path.gid

Returns the UNIX™ group id of a file.

Syntax

os.Path.gid(
   path STRING)
  RETURNS INTEGER
  1. path is the path to a file.

Usage

This function returns the group id of the file.

This method can only be used on UNIX!

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