From c3110356f3c156a43da8bf0703f7c3d4e005de26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Thu, 4 Aug 2022 19:26:27 +0545 Subject: [PATCH] use to_fs.makedirs instead of odb.makedirs 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. --- src/dvc_data/checkout.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dvc_data/checkout.py b/src/dvc_data/checkout.py index ff7d4a18..cae8d19b 100644 --- a/src/dvc_data/checkout.py +++ b/src/dvc_data/checkout.py @@ -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,