if os.path.exists(name) is False:
os.makedirs(name, ear)
import os
def create_nested_folder(parent_folder: str, nested_folder: str):
if not os.path.exists(parent_folder):
path = os.path.join(parent_folder, nested_folder)
os.makedirs(path)
return True
return False
if __name__ == "__main__":
folder = 'example'
n_fodler = '2025'
ret = create_nested_folder(folder, n_fodler)
print(ret)