How to list folders/directories that contain particular pattern files in them in python?

Viewed 1389

For example, if file contains extension .parq I have to list all the directories present in the folder:

  • /a/b/c/
  • /a/b/e/
  • /a/b/f/

Here I have to list the directories c, e, f which has particular pattern files.

1 Answers
Related