From a7abf3227c420ebf63c7cd9e7d9dff8b074dcbfb Mon Sep 17 00:00:00 2001 From: David de la Iglesia Castro Date: Wed, 25 Jan 2023 19:43:38 +0100 Subject: [PATCH] rm: Ensure `expand_path=False`. To fix https://github.com/iterative/dvc/issues/8868 but also for performance reasons (https://github.com/fsspec/adlfs/pull/383) --- dvc_azure/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dvc_azure/__init__.py b/dvc_azure/__init__.py index 131b68c..e849371 100644 --- a/dvc_azure/__init__.py +++ b/dvc_azure/__init__.py @@ -178,3 +178,7 @@ def fs(self): def put_file(self, *args, **kwargs) -> None: kwargs["overwrite"] = True super().put_file(*args, **kwargs) + + def rm(self, *args, **kwargs) -> None: + kwargs["expand_path"] = False + super().rm(*args, **kwargs)