Author pitrou
Recipients pitrou, spiralx
Date 2014-02-11.11:48:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
But owner() and group() don't return the uid or gid: they return the *name* of the owner or group (respectively). If you want the uid (resp. gid), just use st_uid (resp. st_gid) as shown in your example.

Under Unix:

>>> p = Path('')
>>> p.owner()

So if you want to fix the issue under Windows, you need to find a way to grap the file owner's name (and group, if that makes sense under the Windows permission model).

In the meantime though, perhaps the ImportError should be fixed to a NotImplementedError under Windows.
Date User Action Args
2014-02-11 11:48:28pitrousetrecipients: + pitrou, spiralx
2014-02-11 11:48:28pitrousetmessageid: <>
2014-02-11 11:48:28pitroulinkissue20589 messages
2014-02-11 11:48:28pitroucreate