Skip to content

Commit

Permalink
use to_fs.makedirs instead of odb.makedirs
Browse files Browse the repository at this point in the history
local_odb.makedirs will try to chmod, which is only required
while adding to odb. We should be using to_fs.makedirs while
checking files out.
  • Loading branch information
skshetry authored and efiop committed Aug 4, 2022
1 parent cb334d5 commit c311035
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dvc_data/checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def __call__(self, cache, from_path, to_fs, to_path, callback=None):
if to_fs.exists(to_path):
to_fs.remove(to_path) # broken symlink

cache.makedirs(cache.fs.path.parent(to_path))
parent = to_fs.path.parent(to_path)
to_fs.makedirs(parent)
try:
with Callback.as_tqdm_callback(
callback,
Expand Down

0 comments on commit c311035

Please sign in to comment.