Portable look up of home directories and user names and such is harder than
it seems like it should be, or at least so I've been told. We could really
use a number of such facilities, including bidirectional mapping of IDs to
names and mapping IDs to home directories and other user metadata.

On Wed, Sep 17, 2014 at 2:33 PM, Tim Holy <[email protected]> wrote:

> The uid field of stat() gives you the owner. Just not by name. But from
> the uid
> you could figure out the user's name. I don't know whether anyone has
> written a
> package to parse /etc/passwd and extract the user names from their uids,
> but
> if not it shouldn't be terribly hard to do.
>
> --Tim
>
> On Wednesday, September 17, 2014 10:56:45 AM Kuba Roth wrote:
> > Hi,
> > I can't find in julia stdlib equivalent of:
> > stat -c %U path
> >
> > Basically I'd like to query the owner of the file.
> > There is stat() function but it lacks some features of unix stat command
> and
> > I wonder if I overlooked something.
> >
> > Thanks
> > Kuba
>
>

Reply via email to