Skip to content

Commit

Permalink
exists set to True for data download
Browse files Browse the repository at this point in the history
  • Loading branch information
allaffa committed Oct 23, 2024
1 parent 8a2b477 commit c54fc1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/omat24/download_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c54fc1b

Please sign in to comment.