#see a list of all available paths import os os.listdir(path='.') #Where '.' denotes the same location. For subfolders: os.listdir(path='./subfoldername' # you can go deeper and deeper using the same method