Skip to content

Commit c1aaeff

Browse files
sssilvarSantiago Silva
and
Santiago Silva
authored
fix: directory creation on pulling data (#10580)
Co-authored-by: Santiago Silva <[email protected]>
1 parent ad70dd3 commit c1aaeff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/benchmarks.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ jobs:
1818
with:
1919
python-version: "3.12"
2020

21-
- uses: astral-sh/setup-uv@v3
22-
with:
23-
enable-cache: true
24-
cache-dependency-glob: pyproject.toml
25-
2621
- uses: actions/checkout@v4
2722
with:
2823
ref: ${{ github.event.pull_request.base.sha }}
2924
fetch-depth: 0
3025

26+
- uses: astral-sh/setup-uv@v3
27+
with:
28+
enable-cache: true
29+
cache-dependency-glob: pyproject.toml
30+
3131
- run: uv pip install '.[tests]' --system
3232
- name: run benchmarks on base branch
3333
run: pytest --benchmark-autosave dvc/testing/benchmarks/ -k 'test_init or test_help'

dvc/fs/dvc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def _get( # noqa: C901, PLR0912
571571

572572
os.makedirs(lpath, exist_ok=True)
573573
for d in _dirs:
574-
os.mkdir(d)
574+
os.makedirs(d, exist_ok=True)
575575

576576
def get_file(arg: tuple[FileSystem, tuple[str, str, Optional[dict]]]):
577577
fs, (src, dest, info) = arg

0 commit comments

Comments
 (0)