Closed floesche closed 1 year ago
os.makedirs() is a drop-in replacement for os.mkdir() and creates a directory structures recursively.
os.makedirs()
os.mkdir()
This is more likely to happen with the --cachdir option from cb46fd043dc6c973af67310de358ef8aeb590168
--cachdir
The code could be further shortened by replacing
if not os.path.exists(path): os.makedirs(path)
with
os.makedirs(path, exists_ok=True)
Sure. Sounds good.
os.makedirs()
is a drop-in replacement foros.mkdir()
and creates a directory structures recursively.This is more likely to happen with the
--cachdir
option from cb46fd043dc6c973af67310de358ef8aeb590168The code could be further shortened by replacing
with