Does anyone have a hack to create an os.DirEntry
object other than listing the containing directory?
I want to use that for 2 purposes:
In Python 3.5 os.DirEntry is not yet exposed.
Details: https://bugs.python.org/issue27038
Python 3.6 exposes os.DirEntry
type, but it cannot be instantiated.
On Python 3.5 a type() on a DirEntry object returns posix.DirEntry