Looking for a tree cli tool for directory & file listing, preferably written in python that

  • Would support Windows
  • Would support filtering (e.g. excluding or including with partial match)
  • Would support max. depth (e.g. "list only 4 directories deep")
  • Optional, but highly appreciated: Would be still maintained

Solutions that wont work

  • The Windows tree tool lacks basic options like filtering by name and max depth.
  • There is py-tree in PyPi but it seems unmaintained (last activity March 2017) and it does not mention Windows.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.