Closed deathaxe closed 3 years ago
The os.makedirs() function raises an OSError by default if the path already exists. By passing exist_ok=True the function fails silently in such cases so no further checks are required.
os.makedirs()
exist_ok=True
The
os.makedirs()
function raises an OSError by default if the path already exists. By passingexist_ok=True
the function fails silently in such cases so no further checks are required.