os.Path.uid

Returns the UNIX™ user id of a file.

Syntax

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

Usage

This method can only be used on UNIX!

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