I have some folders like-so:
../dog_breeds/images/Images/n02085620-Chihuahua
../dog_breeds/images/Images/n02085782-Japanese_spaniel
../dog_breeds/images/Images/n02086910-papillon
../dog_breeds/images/Images/n02088466-bloodhound
....
....
I want to extract only these info's(Chihuahua, Japanese_spaniel, papillon, bloodhound) from the paths of the files using Python.
Can anybody help me ?