Home | About | Apps | Rss

List directories in python

29 May 2014


Its pretty straight forward to list files, by using:

import glob
print glob.glob("*")

Listing directories especially only those in current level requires the use of os.walk

os.walk('content/').next()[1]

FFMPEG: Create video from sequence of Images | | Longest palindromic substring