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 gvanrossum
Recipients draghuram, gvanrossum, ijmorlan
Date 2007-12-20.20:03:33
SpamBayes Score 0.08367388
Marked as misclassified No
Message-id <1198181013.83.0.783636707028.issue1675@psf.upfronthosting.co.za>
In-reply-to
Content
I think we can fix this as follows: whenever it calls os.mkdir() and an
error is returned, check if that is EISDIR or EEXISTS, and if so, check
that indeed it now exists as a directory, and then ignore the error.

Moreover, I'd like to do this for the ultimate path to be created as
well, so that os.makedirs(<existing directory>) will succeed instead of
failing.  This would make the common usage pattern much simpler.

I think it should still fail if the path exists as a file though.  (Or
as a symlink to a file.)

Patch welcome!

I think this is a feature request and hence should only be fixed in 2.6.
History
Date User Action Args
2007-12-20 20:03:33gvanrossumsetspambayes_score: 0.0836739 -> 0.08367388
recipients: + gvanrossum, draghuram, ijmorlan
2007-12-20 20:03:33gvanrossumsetspambayes_score: 0.0836739 -> 0.0836739
messageid: <1198181013.83.0.783636707028.issue1675@psf.upfronthosting.co.za>
2007-12-20 20:03:33gvanrossumlinkissue1675 messages
2007-12-20 20:03:33gvanrossumcreate