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 r.david.murray
Recipients elias, eric.araujo, hynek, ncoghlan, r.david.murray, tarek, thehesiod
Date 2014-03-15.02:15:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394849754.21.0.295757517143.issue20849@psf.upfronthosting.co.za>
In-reply-to
Content
I don't know what "the method already allows for existing files" means.  Since the target directory can't exist, there can be no existing files.

In unix, this kind of capability is provided by a combination of shell globbing and 'cp -r', and by default it does replace existing files.  So it would be reasonable for exists_ok to mean exactly that: replace anything that currently exists, if it does.

I think that would be a reasonable API, but the implementation isn't as simple as just passing through the exists_ok flag to makedirs.

I do not think that *just* making it OK for the destination directory to exist would be a good API.
History
Date User Action Args
2014-03-15 02:15:54r.david.murraysetrecipients: + r.david.murray, ncoghlan, tarek, eric.araujo, elias, hynek, thehesiod
2014-03-15 02:15:54r.david.murraysetmessageid: <1394849754.21.0.295757517143.issue20849@psf.upfronthosting.co.za>
2014-03-15 02:15:54r.david.murraylinkissue20849 messages
2014-03-15 02:15:53r.david.murraycreate