python mkdir to make folder with subfolder? [duplicate] March 4, 2023 by Tarik Try os.makedirs instead, if you want to create a tree of directories in one call.