Suppose that I have a directory with 3 directories a, b, c. Within each of these directories I have the four directories 1, 2, 3, 4. Is there a way to list all paths, i.e. a/1,..., a/4, ..., c/1, ..., c/4, in python?
Is there a generalization? For example, given a directory to list all paths within at most 3 levels.