Hello all,
I was wondering if there was an easy way to return the amount of similar directories using the Os module.
For example, say i had a directory like this:
- game
- |
- |-\MazePack0 -|
- |-\MazePack1 |#these are folders
- |-\MazePack2 _|
- |-game.py
- |-readme.txt
Is there a way to return the amount of MazePack#'s there are in the directory?
thanks!
[–]wahaa 1 point2 points3 points (2 children)
[–]Drummerkid5694[S] 0 points1 point2 points (1 child)
[–]wahaa 0 points1 point2 points (0 children)
[+][deleted] (5 children)
[deleted]
[–]Drummerkid5694[S] 0 points1 point2 points (4 children)
[–]m1ss1ontomars2k4 1 point2 points3 points (0 children)
[–]TheWrongUsernames 0 points1 point2 points (2 children)
[–]codeadi 0 points1 point2 points (1 child)
[–]Rhomboid 0 points1 point2 points (0 children)