This is my code, i want python to make put all kinds of folders in the folder i made with the module os but it gives the error...
import os
main_folder = "C:\Users\marin\OneDrive\Documenten\jaar 2\Practicum 2\E shell"
if not os.path.exists(os.path.join(main_folder, "Bias")):
os.mkdir(os.path.join(main_folder, "Bias"))
if not os.path.exists(os.path.join(main_folder, "Dark")):
os.mkdir(os.path.join(main_folder, "Dark"))
if not os.path.exists(os.path.join(main_folder, "LED")):
os.mkdir(os.path.join(main_folder, "LED"))
if not os.path.exists(os.path.join(main_folder, "Orders")):
os.mkdir(os.path.join(main_folder, "Orders"))
if not os.path.exists(os.path.join(main_folder, "Thar")):
os.mkdir(os.path.join(main_folder, "Thar"))
if not os.path.exists(os.path.join(main_folder, "Tungsten")):
os.mkdir(os.path.join(main_folder, "Tungsten"))
if not os.path.exists(os.path.join(main_folder, "Calibration")):
os.mkdir(os.path.join(main_folder, "Calibration"))
if not os.path.exists(os.path.join(main_folder, "Calibration/x_pos")):
os.mkdir(os.path.join(main_folder, "Calibration/x_pos"))
if not os.path.exists(os.path.join(main_folder, "Calibration/wavelength_thar")):
os.mkdir(os.path.join(main_folder, "Calibration/wavelength_thar"))
if not os.path.exists(os.path.join(main_folder, "Calibration/x_wavelength")):
os.mkdir(os.path.join(main_folder, "Calibration/x_wavelength"))
if not os.path.exists(os.path.join(main_folder, "Object")):
os.mkdir(os.path.join(main_folder, "Object"))