get directory listing in python

From thelinuxwiki
Jump to: navigation, search

list directory contents

>>>import os
>>>os.listdir('.')