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

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -