Listing Directories with glob : Path : File PYTHON TUTORIALS


PYTHON TUTORIALS » File » Path »

 

Listing Directories with glob


import os 

os.listdir("c:\a\b\")       

import glob 
print glob.glob('c:\a\b\*.mp3')        
print glob.glob('c:\a\b\s*.mp3')      
print glob.glob('c:\a\*\*.mp3')



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo File
» Path