I'm trying to use listdir() to get filename like: "SPRING4800-D7-V40-H70.png". However, i'm only getting the name of the folder above that, so for example "SPRING4800". I cannot just type in '/content/images/maleset/SPRING4800' because the name changes as I have many of these folders. Pls see below example of filenames, thanks!
l2=os.listdir('/content/images/maleset/')
inflating: /content/images/maleset/SPRING4799/SPRING4799-D7-V40-H80.png
inflating: /content/images/maleset/SPRING4799/SPRING4799-D7-V40-H90.png
inflating: /content/images/maleset/SPRING4800/SPRING4800-D7-V0-H0.png
inflating: /content/images/maleset/SPRING4800/SPRING4800-D7-V0-H10.png
inflating: /content/images/maleset/SPRING4800/SPRING4800-D7-V0-H100.png
inflating: /content/images/maleset/SPRING4800/SPRING4800-D7-V0-H110.png
inflating: /content/images/maleset/SPRING4800/SPRING4800-D7-V0-H120.png