AgentschapPlantentuinMeise / TETTRIs-mapping-taxonomists

TETTRIs WP3, task 3.2: automatic mapping of taxonomic expertise
0 stars 2 forks source link

FileExistsError: [WinError 183] Cannot create a file when that file already exists: '../../data/external/backbone' #5

Closed qgroom closed 4 weeks ago

qgroom commented 4 weeks ago

The FileExistsError: [WinError 183] occurs because the os.makedirs() function is trying to create a directory that already exists. Even though the code checks for the existence of the file, it doesn't check for the existence of the directory itself.