os.walk
#!/usr/bin/env python import os for root, dirs, files in os.walk('path/to/directory'): print root, dirs, files
No comments:
Post a Comment