Skip to content

Commit

Permalink
fix: directory creation on pulling data (iterative#10580)
Browse files Browse the repository at this point in the history
Co-authored-by: Santiago Silva <santiago.silva@volta-medical.com>
  • Loading branch information
2 people authored and petebachant committed Oct 12, 2024
1 parent 7013462 commit ecf54ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
with:
python-version: "3.12"

- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: pyproject.toml

- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.sha }}
fetch-depth: 0

- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: pyproject.toml

- run: uv pip install '.[tests]' --system
- name: run benchmarks on base branch
run: pytest --benchmark-autosave dvc/testing/benchmarks/ -k 'test_init or test_help'
Expand Down
2 changes: 1 addition & 1 deletion dvc/fs/dvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def _get( # noqa: C901, PLR0912

os.makedirs(lpath, exist_ok=True)
for d in _dirs:
os.mkdir(d)
os.makedirs(d, exist_ok=True)

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

0 comments on commit ecf54ac

Please sign in to comment.