create folders in python

Solutions on MaxInterview for create folders in python by the best coders in the world

showing results for - "create folders in python"
Melodie
11 Jul 2016
1# This requires Python’s OS module
2import os
3
4# 'mkdir' creates a directory in current directory.
5os.mkdir('tempDir') 
6# can also be used with a path, if the other folders exist.
7os.mkdir('tempDir2/temp2/temp')
8
9# 'makedirs' creates a directory with it's path, if applicable.
10os.makedirs('tempDir2/temp2/temp') 
Francesca
19 Apr 2016
1#creates a directory without throwing an error
2import os
3def create_dir(dir):
4  if not os.path.exists(dir):
5    os.makedirs(dir)
6    print("Created Directory : ", dir)
7  else:
8    print("Directory already existed : ", dir)
9  return dir
10
Christopher
03 Oct 2020
1import os
2
3# define the name of the directory to be created
4path = "/tmp/year"
5
6try:
7    os.mkdir(path)
8except OSError:
9    print ("Creation of the directory %s failed" % path)
10else:
11    print ("Successfully created the directory %s " % path)
12
Daniela
25 Mar 2020
1newpath = 'C:\Program Files\arbitrary' 
2if not os.path.exists(newpath):
3    os.makedirs(newpath)
4
Emy
12 Mar 2016
1newpath = r'C:\Program Files\arbitrary' 
2if not os.path.exists(newpath):
3    os.makedirs(newpath)
Bianca
20 Mar 2017
1import os
2directory = "Krishna"
3path_dir = "C:/Users/../Desktop/current_dir/"
4if not os.path.exists(directory):
5	os.mkdir(os.path.join(path_dir, directory))
queries leading to this page
python create new directorypython file to mkdir ubuntupython creat folderspython create folder in foldercreate foler pythoncreate folder with specific name pythonpython command to create a directorypython how to create folderscreate a new dir in pythoncreate empty folder pythonhow to make a folder a module pythonpython how to create a new directorypython mkdir windowsos module create path pythonpython creating a directorycreate folder with pythoncreate a directory in drive c for your python projecthow to make a directory somewhere in pythonmake folder in the working directory oshow to create folder python2python create a folder in another directorypython create directory in other discpython create direcreatin a directory in pythonmake a new directory python in parent direhow to ceate a new folder in pythonhow to delete directory with pythonpython make new folder ipython create diretorycreating folder and adding file in it in pythonmake dir in os pythonpython how to create a folderpython check or create directoryhow to make a folder in a certain directory pythoncreate a dir pythoncreat folder in pythoncreate a folder in current directory pythoncreate folder python pathmaking folders with pythonmake a new folder pythonpython 3 create folderwhich directory to you create modules pythonhow to create a directory pythonhow to createfolser with pythonhow to create a directory for easy loading of data in pythoncreate a python file in a folderhow to make a directory a python packagemake dir poythobmake a directory in python terminaldirectory creation pythonpython3 create directorypython create directory inside directorycreate directory in current working directory pythonopen and create directory pythonpython create directory forcemake a new directory with pythoncreate a directory pyshutil create directorypython create folder from 2fusrpython make directory in pathpython force to create folderhow to create python directory on server shellpython module to create a folderpython create folder following with gloval pathruntime finder in pythompython create file in folderpython create directory from 7emake a new directory pythonadd new directory pythonhow to automatically create a folder using pythonpython creating foldermake new directory pythonpython code to create a foldercreate folder path pythoncreate a folder in directory pythoncreate all directories in path pythonwill w 2b create directorys pythonos python create an directoryhow to make new directory in pythonpython create files in folderpython create path directorypython make direhow to create folder by pythonpython create folder in directoryhaving python program to create foldermake directory in python programpython create folder inside folderos module for creating a directorypython os create dirpython os create a folderpython ccreate a foldermake directory python packagecreate foldeer shutildeclare directory in python functionmake directory python 3create a folder in a directory pythonpython create folder in home directorypython os new folderpython make new folder in current directorycreate a folder and file in pythoncreate a folder using os pythoncreate directories using pythondir pythoncreaet an folder from pythoncreate folder with os pythonpython make a foldercrate folder pythonadding directory into another directory pythonhow to create a folder in any directory using pythoncreate directory path in pythonpython create empty foldercreate dir in a function in pythonhow to creat directory in specific path using pythonhow to create a directory in pythoncreate dir pythonpython create folder structure from listhow to create a new folder in pythoncreating a folder on desktop using pythoncreate directory python osos new folder not found pythonhow do you to make directories for python make folder pythonwith open python create directorypython linux create directorycreate dir in pythoncreate directory python insidepython3 create a directorycreate new folder in windows using pythonpython get make directorypython creat directoryhow to create directory in linux using pythonpython create dirhow to make directory as package in pythonpython make dir linuzmake new directory in python linuxpython make directory cmdpython create folder in directory delete if existshow to create a fiolder in pythonmake directory current pythonmake directory python another directorycreate new directory pythonpython create empty foder python 3 create directorycreate new directory python and specify namecreate new folder in pythoncreate directory python linuxhow to create a directory tree in pythonhow to make python create a foldercreating a new directory in python windowdefine directory in pythonpython code to make a foldercreate a folders in linux in pythonpython new directorymake a directory pythonpython crate folder and filecreate folder with python linuxpython to create new foldermake a folder pythonhow to make a directory on windows pythonpython os try create directorypython how to make directory this foldercreate folder in pythoncreate new directory os pythonpython script to create directory structurecreate new folder pythoncreate a folder pythonmaking a directory pythonhow to create a directory with pythonpython create dir pandas oshow to make directory using pythonpyton create folder in a pathcreating a dir pythonhow to create a new folder from pythonpython3 make directorypython make fodlerhow to make folder pythonmaking a open folder with pythonhow to creat new folders with pythonhow to create a new folder using pythonhow to make directory using python shellcreate folder in sub folder pythonwith open create folder pythonhow to create a directory in current directory pythonhow to tell python to create a folderhow to make a path was from folder to folder on pythonhow to make a folder in a director pythonhow to create a directory path in pythoncreatedir in python oshow to create a folder using os module in pythonmaking a directory in pythonpath create directory pythonjoin for making one directory in pythoncreate directory in drive pythonpython creating folderscreate folder by pythoncreate new folder python os pathpython os create folderinsert directory in pythonpython3 create a directory at the current pathpython create a new folderos command to create folder pythonhow to create a folder in a directory in pythonstore a directory pythonwhich python library contains functions to create folderscreating nested directory pythonhow to create folder in pythoncreate new directory with python in another directorywhatm odfule do you needf to create folders pythoncreate directory with python osfolder creation in pythonpyton create a dirpython how to create new directory with sub directoryhow to create a new directory in pythonspecify directory in pythonmake a folder in pythonhow to create directory from path pythonpython create folder within pathpython dir creategenerate a folder in pythoncreate folders using pythoncreate a directory pythonos python how to make the directorycreate folder using os pythoncreate a new folder inside a directory with pythoncreate new dir pythonhow to make a folder in pythonmaking new folder python commandpython create dirsmake dir os pythonhow to create a folder in a specific path in pythonhow make directory using pytohnpython create directory pathlibhow to make a new directory in pythonpython to create directorycreate a folder within pythonos python make folderadd directory in for directory pythonhow to create folders using pythonpython make a new file with a new directorycreate folder in directory pythoncreate a folder inm pythoncreate dirctory with python in maccreate a folder in path pypython3 create folderput directory in scr pythonmake directory using pythonprint name of folder create pythoncreate folder python windowsis python open create directorymake new folder using pythonpython create folder functioncreate a directory p c3 a5ythonmake folder using pythoncreate empty project folder in pythonpytho open with mkdircreate folder from folder pythoncreate a new folder automatically in pythonlinux make directory pythonmake dir pythonhow to creat directory in python python3 create dir on windowsfunction to create a directory in pythonpython makee dirmake folder to module pythongenerate folder pythoncreate a folder in a directory in pythonos python how to make a folder inside a folderpython create folder in different directorydefine an entry directory in python projectcreating a separate folder in pythonhow to create a python directoryhow to make a folder opener in pythonpython how to create a folder in the folder of the programmspython shutil create directory if not existscreate a directory pyhtoncreate directory and file pythonpython code to clear all directories made using os mkdirpython linux make directorymake directory inside directory pythoncreate folder pythonpyhton create dirbuild directory pythonpython 2 create directoryos make directory pythonhow to change the directory from a mkdir in pythonhow to create a different new folders in python python script to make a new directory in current directorypython os creating new directoriescreate directory structure in pythonhow to make folderin pythonmake dir in os in pythonhow to create directory pythonpython os create foldersmake folder with name pythonpython create folder namehow to create folder in python command linehow to make folder using pythoncreate folder inside root ubuntu using pythonpython making directorypython create direccreate a folder in home directory pythonmake dir ectory in pythonhow to create a folder user pythoncreate new folder using pythonhow to create folder pythoncreate a directory from pythoncreate new folders in pythonpython creates foldehow to make a path was from folder to folder in pythonpython os library make folderhow to make directory using oshow to create folder automatically with the name of the files in pythoncreate directory with pythonpython create directory windowscreate directory in main folder pythonpython os create a directoryhow to create new directory as it comes in pythonpython make folder with osos makedirs can 27t create a folder with extensionpython create folder in another directorypython open create directorypython generate folder structurecreate directory in micropythoncreate folder structure at scp pythonmake directory windows pythonpython directory creationos create dirpython script to create new foldercreate a folder in python in specific pathpython script to identify same file and return to a new folderpython create local directoryhow to make a new directory from pythoncreate folder 28 directory 29 with pythoncreate directory pythonoscreate folder using os lirabry in pythonpython mkdir ppython make new folderhow to create directory using class method run commands in pythoncreate a new file folder in pythonhow to make folders in pythoncreate folder python linuxselect the method that can be used to create a directory pythonhow to create folder in program files os pythonansible create directoryhow do i create a folder pythonhow to create new folders with pythoncreate folder pythonpython make dircreating folder in pythonmake a directory with pythonpython script that creates a directoryhow do i make a directory in a directory with pythoncreating folder with pythoncreate directory python and get its pathpython how to close new directory after creationpython create directory on openhow to create folders in side folder in pythoncreate folder os pythonpython new foldercreate all directory folder in pythoncreate directory and write to it pythonhow to make a directory pythonpython create folder in a freshly created folderpython create directory structurecreate a dir in pythonhow to create a newfolder in pythonpython method that creates empty project folderspython script to create folder structurepy create dirpython create new foldercreate folder and file pythonhow to create a folder with pythonhow to assign directory in pythonpython create folder and filesmake directory oscreating file folders in pythoncreate folder using pythonpython how to make and a foldercan we create folder using write file handing in pythoncreate a directory python windowshow to create a folder from pythoncreate dir pythonnpython script to create folderhow to make a folder with pythonhow to create a folder automatically in pythonpython file create folderprogram in python to make folder in foldermake new directory linux pyhtonpython make a folder navigatoros directory createhow to create a python folder for termina 3bcreate folder structure in pythonmake directory os pythonhow to create a directory in desktop using pythonwhich python library contains fucntions to create foldersmake dir in pythoncreating a folder in pythonhow to create a folder pythonpython open create foldercreating a directory through pythonhow to create a directory in python with pathlibhow to create a directory using pythonhow to create a fiolder and change it in pythonhow to create a directory in python os modulepython create a dircreate a directory in python oscreate folder with content of other folders pythoncreate directory and assign path pythoncreate folders pythonpython pathlib create directorycreatr folder using pythoncreate a folder path python in linuxpython create a new folder in a different directoryhow to make directory in pythoncreating a directory in python 3make a directory named 2f pythonhow to create a directory in python using oscreate directory folder pythonmake a file folder in pythonpython make folders from listpython windows create directoryhow to create python file in a directory linuxhow to write a directory in pythonhow to create a folder in current directory in pythonpython create directory without oscreate a simple directory in pythoncreate directories pythonmake a new dirctory in pythonwhich of the following can be used to create a directory in pythonhow to make a directory python ospython making new directory linuspython check for folder and createpython create folder for modulesytanx of declaring directory in pythoncreate a directory in window 10 using pythoncreate dir pyhow to create directory in pynthoncreate a folder with pythonhow to create a directory from pythonhow to create a folder inside a folder in pythonpython create folder in dir of scriptpython make a directoryhow to create a folders using pythonpython os make dirmake new folder pythonmake directory pythonos create folder pythonhow to make a new directory using pythonmaking directory pythoncreate folder in current directory python linuxcreate a directory using codehow to crate a foldr in pythonpython create folder outputhow to make directory in any folder pythoncreate folder in python windowspython path create directory create folder command in pythonmake folder package pythonhow to use mkdir to make a directory and name it in the same line of code pythoncreate directory using shutilhow to make folders using pythonhow to make folders and create another folder inside in pythonto make folder pythonpython open make folderhow to make dir in pythyon new build folder created pythonmakedirectory in pythonhow can we make folder with pythoncreate a series of directories in pythonmake new dir pythonhow to make new folder through pythonhow to make new folder pythonpython creade directory for filehttps 3a 2f 2fwww google compython get date 2fsearch 3fq 3dpython 2bcreate 2bfolder 2bin 2bpath 26oq 3dpython 2bcreate 2bfolder 2bin 2bpath 26aqs 3dchrome 69i57j0i19i22i30l6 7207j0j1 26sourceid 3dchrome 26ie 3dutf 8os create dircan you create a folder using pythoncreate dir using pythonpython code to create foldercreate a folder inside a folder pythonnohtyp ni defined in your module inside a directory named data in your current directory os python create directorydel and make directories pythoncreate dir in python osshould you create folders in pythonhow to make a anew file in a folder pythoncreateing a folder path in pythonhow to create the folder in working directory using pyhtoncreate folder in python listcreate file and folder structure in pythonpython makefoldersmake directroy pythonpython linux directories synraxcreating a new directory in python windowscreate a folder with os in pythonhow to create a folder python oscreate directory os pythonhow to make a directery in a directory in pythoncreate a directory using python in windows machinecreate a folder in python 3pathlib create new directorypython create folder structure from windowshow to make folders with pythoncreate python system foldercreate directory using os module pythonpython3 create dircreat dir in pythonhow to add folder in python using oshow to make a folder using osmake dir with pythoncreat a directory in pythonmaking folders in pythonpython create folder in direcotryhow to create a dir in pythoncreate a folder structure with pythonhow to make new folder in pythonhhow to create a folder pythoncreate a directories in pythonhow to make a dir in pythonpython path os make dirpython linux create directory and sub directorypython code for directoryprint 28 27error 3a creating directory of data 27 29python make a folder in directorypython os create directoryhow creat folders using pythonpython create folder in existing directorypython 3 make directoryhow to create a new folder with pythonpy code create folder under foldercreate files in a folder using pythoncheck the path and create folder in pythonpython make directory commandcreate directory in home linux pythonpython create a windows directoryhow to create a folder and files in pythoncreate a directory in python 2c from the root locationcreate new directory python osmake directory commany pythonhow to get directory name from mkdir in pythonto to create a new folder and add files using pythonpython create directory examplehow to make directory using python scripthow to create a directory python osautomatically create a new folder in python3python create directorieshow to make a new folder using pythonhow to create a folder inside the folder in pythonpython create foldercreate a file in directory linux pyhtoncreate a dir with pythondefining directory in pythonhow to create a new folder pythonhow could you use the os module to create a series of directories and subdirectories 3fcreate direcory pythonpython create directory shutilpython how ro create a directorypython make directory modulehow to create folders in pythonpython make foldercreate a new directory in pythonmake directory with os pythonpython make new directorycreate a new directory pythonpython how to make in the existing folder a new folderpython create a folder with classeswindows python mkdiros path create directoryquestion 3 which of the following methods from the os module will create a new directory 3fcreate directories in pythoncreate directory of file pythonhow to make python make a folderos module to create a series of directories and subdirectorieshow to make a directory with pythonhow to create a directory in os pythoncreating a folder using pythonhow to make a folder in python windowshow to make a folder using pythnhow to make directory with pythonmaking code folder pythonpython os create new directoryhow to create folder and file in pythonpython how to create directorycreatea directory in windows pythonhow to make directories in pythonhow to create a folder dynamically in pythonpython create folderspython os create new folderpython create a directorypython libraries to create folderpython os creat dircreate an empty directory in pythonpyhton make directorypythonn make dirpython open and create directoryhow to create a folder in pythonmake new dir with pythjonhow to create file structure using pythonpythno3 create new directorymake a folder a module pythonpython create directory from variablepython create folder structurepython create fike directorymake a directory using pythoncreate directory with subdirectory pythonpython os make dir on linux and windowscreate folder python oscreate a directory in current directory pythoncreate a directory in python scriptos create dir pythoncreate a folder using python 2b linuxcreate directory folder in pythonpython create directory with directories insidepython create output directory if not existsmake a new dir with pythonpython create a new directorycreating a new directory from pythonpython open with create directoryhow to create a folder or directory in pythonmake directory using os module pyhtonhow to create a folder using pythoncreate folder python shutilpython create directory typeos library python create directorymake dir using pythoncreating a file folder in pythonpython crate a directory in pathcreate a directory pythohow to create a folder in python and put a fileprogram that crates directory pythoncreate folder with os in pythoncreate folder open pythonhow do i create a new folder in pythoncreate directory pythonpython file make dircreate folder with python 27python create folder and write modelos new folder pythonhow to point os mkdir to where you want the new directorypython library to create foldershow to create new folders in pythonpython create a directory for scriptpython os make new directorymakedirectory pythonmake a folder with pythonpython os make folderhow to include a folder in python buildpython create folder directorypython3 create folder os modulepython clean way to create dirs and ifleshow to create a dir using pythonmake directory python alreadycreate folder in current directory pythonhow to create directories in pythonpython creat folderopen make folder pythonmake folder python packagecreate a folder in python oscreate a folder using python how to make a directory in pythonpython directory setupcreate a file in folder pythoncreate folders using python scriptpython create directory linuxos module to create a series of directories and subdirectories 3fhow to create nested folder pythonmake directories pythonos create new folder pythonmake a directory in pythoncreate directory using pythonpython generate foldercreate folders os pythonlet python make a directorypython 3 make new directorymake a directory in python within existingpython making directoriescreate dir from pythonpython commnda to create foldercreate folder if not exist in python lambdapython os module create directorypython make directortymake a new directory under the current pythonhow to make a directory using pythoncan i create a folder in pythonmake folder in pythonpy make directoryfastest way to create python create directorycreate directory python pathlibmake directory python ospython set data foldercreate a folder os pythoncreate a folder using os library pythoncreate directory python3how to create a directory and use it in pythonpython make directorieshow to create directories python file in pythonpython open make directorypython create directory of filehow to create a folder using python at any locationpython function to create folder in current directorycustom directory function in pythoncreate a folder from script pythonhow to make dir in pythonmake a folder directory in pythoncreate new directory in different directory pythonhow to create folder with pythoncreaeate folder in pythoncreate folders in pythoncreate a directory in pythonphp rename a directorymake new folder python linuxpython make all folders in pathpythinh create dircreate a folder to a specific directory in pythonhow to create a directory in linux using pythonhow to create a folder for pythonpython os make directorypython create directory with pathmake a folderr with pythoncreate a folder from python in current directoryhow to make a director pythoncreate a folder in directory pyhtonpython create folder in current directory safelyhow to make a directory in the user 27s computer using pythonpython os make directoryucreate a new folder in pythonpython check for directory and createwhich of these following create directory pythoncreate ptyhon file in foldercreate a directory using pythonhow to make a folder in os in pythoncreate new directory in pythonpython 3 os how to create folder and file with python3 os modulemake sub directory pythonpython 3 os create folderpython code for making folderpython create folder with osmaking new folder using pythoncreate dir pthoncreate dirs pythoncreating directory in pythonpython windows create folderhow to make directory with python osmake folder with pythonmake folder in cwd pythonmake directory in mac pythonpython build folderpythhon create dirpython make folder and go inside 5cpython how to make a directorypython create directory in current directorypython make directory a modulepython crerate dirhow to create directory using pythonhow to create new folder using pythonpython windows make foldercreate directory in pythoncreate folder inside another folder using pythonpython create folder in working directoryhow to create new directory in pythonhow to create a python code to create folderhow to create a python script in current directoryis it possible to create a folder in pythonhow ot make directory in pythondeleting the directory using os python 5cpython script for creating folder ubuntupython folder createto create folder with pythonhow to create a python file in a foldermake a folder python modulenot able to create directories on particular path pythonpython creae directorypython import from directorypython create directory commnadhow to make folder in directory pythondelete mkdir pythoncreate a folder with path pythonhow to create folder using pythonpython create directroyhow to make a folder pythoncreating folder pythonpython os make dirsos create directoryhow to create folders with pythonhow to create dir in pythoncreate a new folder with python without ospython script to create folder in windowshow to create a directory and save images in it using osmake a dir pythonmake dir pyhow to make a new folder in pythonpython creat e folderpython script to make directorycreating a new folder pythonmake python folder cmdhow to make directory pythonpython code to add a 2f to the folder structurecreate a python directorycreating a folder with pythonpython create folder in pathpython os add folderhow to create python directorycreate empty dir pythonhow to make a directories in pythoncrate folder in pythoncreate a new folder pythoncreate new folder and move files pythonpython make dirspython make a new directoryjoin a dir to create a folder with file inside pythonmake directories with pythonpython create directory if not existshow to create directory with pythonpython create directory 23easy way to create a directory in python with directoriespython os make new directory at specific directorycreate new directory in linux os module pythonhow to make folder in pythonpython create directory in linuxhow to create a folder using terminal in pythondoes open in python create a folderrpython make the file folder the current directorycreate mkdir pythonhow to make directories with pythonhow to create a folder using python oscreate new folder with sub folders pythonpython make a directorpythoncreate directorycreating a new folder in pythondeclare directory pythonevery month directory create using os mkdircreat new directory folder pythonhow to create a directory if not exists in pythonmake director using pythonhow to create folder from pythonpython create dir to userscreate a directory with pythonpython create folder in current directorycreate a folde by using pythoncreate new folder with pythoncreate a folder in pythonpython data folderpath make file pythonpython create a folder in a directorypython ubuntu create folderpython create directory as userpython 3 create multiple directory if not existshowto create a folder inside a python scriptmake folders with pythoncreat folder pythonpython make directorycreate folders python standard libraryhow to create folder by python codepython folder create usinghow to make python create a directorypython create full directory path c 3acreate directory python 5dpython making a dirhow to create new folder in pythonpython with open create directorydirectory creation syntax in pythonhow to create a new directory in python using shutilpython make folder in current directorypython generate directorycreate folder from pythonbuild directory django pythoncreate folder inside folder pythoncreate new folder using pathlib create new folder python with passhow to make new dir in pythonnew folder pythonpython create folder windowspython create a directory and a filemake a new folder inside a folder pythonmake directory in pythoncreate a folder automatically in pythoncreate new directory with pythonhow to make directory in specific location python2ubuntu python create directorypython create a dir inside a dirpython os make new folderpython write directory linuxpytrhon create dirhow to make new folder with import os pythonhow to make a python folderpython gcreate dirpython create file and folderhow to make a folder a module in pythonos create pathos make dir pythonreturn path of created folders pythonlinux python create file and dirpython scripting 2c create a directoryhow to create directory in pythonpython as a folderopen a directory and createa file in it pythonpython code to create a directoryos open or create dir pythonpython create folder on c pathpython how to create a directoryhow to create python folderscreate directory pathlibpython make directory at pathcreate folder on file location pythonhow to create a file but not a directory in pypython how to create a folder moduklehow to creat folder using pythonpython build directorypython how to create a new project folderhow will create folder in python 3 8 command linehow to make a dir in python ospython create directorypython mkdir directorycreate a directionay in pythonmake all directories in path pythonhow to use the new directory in pythonpython write foldersetup a directory in pythonpy os create dirhow to creat folder in pythonsystem make folder pythonhow to make a file directory pythoncreate dir with pythonpython 2 7 create folder and importhow to create a new py inside the working directory in pythonhow to create a new directory in a current directory pythobhow to create a directory using os pythonmake directory with python making a folder using pythonmake folders in pythoncreating a new folder and file in pythonpython os create folder inside folderpython how to make dirpython create a foldercreate folder in folder pythonhow to make a folder using pythonhow ot create directory in pythoncreating a directory in pythoncan we create new folder while creating pathpythoo create directorypython how to check and create directorypython how to create a new folder how to make directory using python terminalpython how to create foldercreate folder if needed pythonhow to create folders in python codecreate folders with pythoncreat directory pythonpython create directory folderhow to make a directory a python modulecreate new folder on mac with pythonmake directory modules pythonhow to create a directory in python 3python add new foldermaking folder in pythonmake a folder using pythonmake directory in python osdoes python open create directoriescreate a python foldermaking directory in pythonpython cant create folder erroros create directory pythonpython create directory from listcreate a directory in current directory in pythonmaking new directory pythoncreate folders in python