Listing Directories with glob : Dircetories « File « Python






Listing Directories with glob


import os



os.listdir("c:\\")                

import glob 


glob.glob('c:\\*.mp3')            


glob.glob('c:\\*.mp3')           

glob.glob('c:\\c\\*\\*.mp3')                   
           
       








Related examples in the same category

1.Listing DirectoriesListing Directories
2.Change Dir
3.Working with DirectoriesWorking with Directories