SyntaxFix
Write A Post
Hire A Developer
Questions
With full path and accounting for path being ., .., \\, ..\\..\\subfolder, etc:
.
..
\\
..\\..\\subfolder
import os, pprint pprint.pprint([os.path.join(os.path.abspath(path), x[0]) \ for x in os.walk(os.path.abspath(path))])