python 3.x - Create os.DirEntry -


does have hack create os.direntry object other listing containing directory?

i want use 2 purposes:

  1. tests
  2. api container , contained queried @ same time

in python 3.5 os.direntry not yet exposed.

details: https://bugs.python.org/issue27038

python 3.6 exposes os.direntry type, cannot instantiated.

on python 3.5 type() on direntry object returns posix.direntry


Comments

Popular posts from this blog

How to start daemon on android by adb -

testing - Detect whether test has failed within fixture -

Angularjs unit testing - ng-disabled not working when adding text to textarea -