G
gga
On linux:
require 'etc'
uid = Etc::getpwnam(username).uid
this works fine, but on windows, this fails miserably. Is there a
platform independent way of getting the uid for any username (so as to
later use that uid against File::Stat.uid)?
require 'etc'
uid = Etc::getpwnam(username).uid
this works fine, but on windows, this fails miserably. Is there a
platform independent way of getting the uid for any username (so as to
later use that uid against File::Stat.uid)?