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 eryksun
Recipients Dan Buchoff, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-02-02.01:59:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486000751.33.0.382198461587.issue29416@psf.upfronthosting.co.za>
In-reply-to
Content
This case is similar to issue 29079. It should only attempt to make the parent to handle ENOENT if self and self.parent aren't equal. Here's the snippet from Path.mkdir:

    try:
        self._accessor.mkdir(self, mode)
    except FileExistsError:
        if not exist_ok or not self.is_dir():
            raise
    except OSError as e:
        if e.errno != ENOENT:
            raise
        self.parent.mkdir(parents=True)
        self._accessor.mkdir(self, mode)
History
Date User Action Args
2017-02-02 01:59:11eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, Dan Buchoff
2017-02-02 01:59:11eryksunsetmessageid: <1486000751.33.0.382198461587.issue29416@psf.upfronthosting.co.za>
2017-02-02 01:59:11eryksunlinkissue29416 messages
2017-02-02 01:59:10eryksuncreate