diff --git a/examples/omat24/download_dataset.py b/examples/omat24/download_dataset.py index b7005767a..bafe2fddd 100644 --- a/examples/omat24/download_dataset.py +++ b/examples/omat24/download_dataset.py @@ -57,7 +57,7 @@ def get_data(datadir, task, split): logging.info("Extracting contents...") os.system(f"tar -xvf {filename} -C {datadir}") filename_without_extension = filename.replace(".tar.gz", "") - os.makedirs(os.path.join(datadir, task), exist_ok=False) + os.makedirs(os.path.join(datadir, task), exist_ok=True) # Move the directory shutil.move(filename_without_extension, os.path.join(datadir, task))