os.Path.uid

Returns the UNIX™ user id of a file.

Syntax

os.Path.uid(
   path STRING)
  RETURNS INTEGER
  1. path is the path to a file or directory.

Usage

This method can only be used on UNIX!

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