From 065f32293132f9ab0c48406e5d83e07d06ed7e7b Mon Sep 17 00:00:00 2001 From: Santiago Silva Date: Thu, 3 Oct 2024 17:21:41 +0200 Subject: [PATCH] fix: directory creation on pulling data --- dvc/fs/dvc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/fs/dvc.py b/dvc/fs/dvc.py index 6d1a77e74d..868a77a56b 100644 --- a/dvc/fs/dvc.py +++ b/dvc/fs/dvc.py @@ -571,7 +571,7 @@ def _get( # noqa: C901, PLR0912 os.makedirs(lpath, exist_ok=True) for d in _dirs: - os.mkdir(d) + os.mkdir(d, exist_ok=True) def get_file(arg: tuple[FileSystem, tuple[str, str, Optional[dict]]]): fs, (src, dest, info) = arg