Create a directory
import os dir = "Your/Path/" if not os.path.exists(dir): os.mkdir(dir)
Move file to a directory
import shutil
source ='./source'
destination ='./destination'
dest =shutil.move(source, destination)
import os dir = "Your/Path/" if not os.path.exists(dir): os.mkdir(dir)
import shutil
source ='./source'
destination ='./destination'
dest =shutil.move(source, destination)