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 ysj.ray
Recipients Arfrever, draghuram, eric.araujo, ggenellina, giampaolo.rodola, gvanrossum, ijmorlan, terry.reedy, ysj.ray, zooko
Date 2010-07-26.13:26:13
SpamBayes Score 2.826932e-06
Marked as misclassified No
Message-id <1280150776.82.0.894651006453.issue9299@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, I'm sorry, I forgot about that case. 

I agree with Arfrever, we should suppress the OSError only if the target file exists as a directory, but not other types. That is, the "exist_ok" argument in makedirs() should mean "dir existing is ok", only existing of the exact same thing as we specified to create is ok, not other things. I will fixed this later. 

Besides, I wonder what should we do if the target directory exists but with a different mode than we specified(if we specified the "mode" argument). I guess we should also raise the OSError because the existing thing is not the same as what we want.
History
Date User Action Args
2010-07-26 13:26:17ysj.raysetrecipients: + ysj.ray, gvanrossum, terry.reedy, zooko, ggenellina, draghuram, giampaolo.rodola, ijmorlan, eric.araujo, Arfrever
2010-07-26 13:26:16ysj.raysetmessageid: <1280150776.82.0.894651006453.issue9299@psf.upfronthosting.co.za>
2010-07-26 13:26:13ysj.raylinkissue9299 messages
2010-07-26 13:26:13ysj.raycreate