After update my code is broken

Hey Hey,

A year ago I was given the task to archive photo for 100+ adresses each month.
For each adress a separate folder was needed. After some time on google and asking arround we came up with this code


import os
path=  'C:\\ * \\ * \\Desktop\\auto_folders'


#veranderd het home-directory naar het directory in path
os.chdir (path)

#NAW-bestand opslaan in path als CSV-file met lijstscheidingtekens (;)  
with open ('autofolder.csv', 'r') as names_file :
    names_file.readline ()
    for line in names_file :
        line_list = line.split (';')
        # line list 0 is de eerste kolom(straatnaam), line list 1 is de tweede kolom(huisnummer) linelist2 is de derde kolom(huisnummertoevoeging)
        directory_name = line_list [0] + " " + line_list [1] # + "-" + line_list [2]
        os.makedirs (directory_name)

After the last update this code is broken with traceback

Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 7.29.0 -- An enhanced Interactive Python.

runfile('C:/Users/Marcel/.spyder-py3/auto_map_csv.py', wdir='C:/Users/Marcel/.spyder-py3')
Traceback (most recent call last):

  File "C:\ * \ * \.spyder-py3\auto_map_csv.py", line 32, in <module>
    os.makedirs (directory_name)

  File "C:\ * \ * \anaconda3\lib\os.py", line 225, in makedirs
    mkdir(name, mode)

FileNotFoundError: [WinError 3] Het systeem kan het opgegeven pad niet vinden: ' '


Does someone has an idea how to fix this?

thanks in advance

Tis item is solved !

Thank you