0

Who's know os.walk module

i need tree graphic

12th Mar 2017, 7:50 PM
javohir
javohir - avatar
1 Odpowiedź
+ 1
import os rootDir='.' for dirName, subDir, files in os.walk(rootDir): print('Directory: %s' % dirName) for fileName in files: print('\t%s' % fileName)
15th Mar 2017, 6:58 PM
Ruslan Ovcharenko
Ruslan Ovcharenko - avatar