def del_create_analytics_folder(): # del the analytics folder including subfolder # mkdir the analytics folder (only mkdir) if os.path.exists('analytics'): shutil.rmtree('analytics') if not os.path.exists('analytics'): os.mkdir('analytics')