Message111609
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. |
|
Date |
User |
Action |
Args |
2010-07-26 13:26:17 | ysj.ray | set | recipients:
+ ysj.ray, gvanrossum, terry.reedy, zooko, ggenellina, draghuram, giampaolo.rodola, ijmorlan, eric.araujo, Arfrever |
2010-07-26 13:26:16 | ysj.ray | set | messageid: <1280150776.82.0.894651006453.issue9299@psf.upfronthosting.co.za> |
2010-07-26 13:26:13 | ysj.ray | link | issue9299 messages |
2010-07-26 13:26:13 | ysj.ray | create | |
|