Sigmmma / mek

GNU General Public License v3.0
13 stars 5 forks source link

Deal with Windows bug with os.makedirs exist_ok #14

Closed ShellyHerself closed 4 years ago

ShellyHerself commented 4 years ago
Unpacking MEK to "W:\halotest\MEK"
Traceback (most recent call last):
  File "W:\halotest\MEK\MEK_Installer.pyw", line 193, in download_mek_to_folder
    os.makedirs(path.dirname(filepath), exist_ok=True)
  File "C:\Users\Vaporeon\AppData\Local\Programs\Python\Python38\lib\os.py", line 223, in makedirs
    mkdir(name, mode)
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'W:\\halotest\\MEK\\READMES'

exist_ok ... FileExistsError

Bruh

Seems to be related to samba shared network drives.