import os # Current working directory home = os.getcwd() print(home) # Change directory os.chdir('C:\\Windows\\System32') print(os.getcwd()) os.chdir(home) print(os.getcwd()) # Create folders os.makedirs('./files')