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 serhiy.storchaka
Recipients ammar2, chris.jerdonek, giampaolo.rodola, nanjekyejoannah, serhiy.storchaka
Date 2019-02-17.11:12:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550401953.39.0.438614693472.issue35951@roundup.psfhosted.org>
In-reply-to
Content
There are possible race conditions. Other process can create the same target directory (if it does not exist yet) by calling os.makedirs() for example. It will be impolite to remove the directory just after the second process checked that it exists (or even after it created it).

Also, the created directory will left if the program crash before deleting it.

os.renames() to non-existing directory can not be atomic. It can interfere with other processes or threads. We should just document this.
History
Date User Action Args
2019-02-17 11:12:33serhiy.storchakasetrecipients: + serhiy.storchaka, giampaolo.rodola, chris.jerdonek, ammar2, nanjekyejoannah
2019-02-17 11:12:33serhiy.storchakasetmessageid: <1550401953.39.0.438614693472.issue35951@roundup.psfhosted.org>
2019-02-17 11:12:33serhiy.storchakalinkissue35951 messages
2019-02-17 11:12:33serhiy.storchakacreate