text = "%USERPROFILE%\Desktop"
chdir(text)
mkdir(voice)
from pathlib import Path
my_home_dir = Path.home()
new_folder_name = 'my_new_folder'
new_folder = Path(new_folder_name)
new_folder_full_path = my_home_dir / new_folder
try:
Path.rmdir(new_folder_full_path)
except FileNotFoundError:
pass
print(new_folder_full_path.is_dir())
try:
Path.mkdir(new_folder_full_path)
except FileExistsError:
pass
print(new_folder_full_path.is_dir())