This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.golden
Recipients Christian.Tismer, Oren_Held, brian.curtin, giampaolo.rodola, ishimoto, markm, orsenthil, santoso.wijaya, sijinjoseph, tim.golden
Date 2013-07-30.13:15:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375190129.6.0.893819178614.issue9035@psf.upfronthosting.co.za>
In-reply-to
Content
I put a bit of work in on this this morning, following Mark's suggestion (msg138197) since that's the "canonical" approach. Unfortunately, it completely fails to work for the most common case: the root folder of a drive! The documentation for FindFirstFile explicitly precludes that possibility.

It looks as though  GetVolumePathName is the way to go. I thought I'd previously found some instance where that failed but, ad hoc, I can't make it fail now. I'll try to rework Atsuo's patch against the current posixmodule.c.
History
Date User Action Args
2013-07-30 13:15:29tim.goldensetrecipients: + tim.golden, ishimoto, orsenthil, giampaolo.rodola, brian.curtin, sijinjoseph, Oren_Held, santoso.wijaya, markm, Christian.Tismer
2013-07-30 13:15:29tim.goldensetmessageid: <1375190129.6.0.893819178614.issue9035@psf.upfronthosting.co.za>
2013-07-30 13:15:29tim.goldenlinkissue9035 messages
2013-07-30 13:15:29tim.goldencreate