Author eryksun
Recipients eryksun, r.david.murray, stephan
Date 2016-10-25.17:59:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
os.DirEntry exists in 3.6, but the change wasn't backported to 3.5. See issue 27038. As a workaround, you can scan a non-empty directory to get a reference to the DirEntry type, e.g.:

    import os
    import tempfile

    with tempfile.NamedTemporaryFile() as f:
        path = os.path.dirname(
        DirEntry = type(next(os.scandir(path)))
Date User Action Args
2016-10-25 17:59:04eryksunsetrecipients: + eryksun, r.david.murray, stephan
2016-10-25 17:59:04eryksunsetmessageid: <>
2016-10-25 17:59:04eryksunlinkissue28530 messages
2016-10-25 17:59:04eryksuncreate