Skip to content

Commit

Permalink
spec: wrap async and sync overridden adlfs methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrowla committed Jun 21, 2023
1 parent b5a4d29 commit 9e67bb4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dvc_azure/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ def put_file(self, *args, **kwargs) -> None:
kwargs["overwrite"] = True
return super().put_file(*args, **kwargs)

async def _put_file(self, *args, **kwargs) -> None:
kwargs["overwrite"] = True
return await super()._put_file(*args, **kwargs)

def rm(self, *args, **kwargs) -> None:
kwargs["expand_path"] = False
return super().rm(*args, **kwargs)

async def _rm(self, *args, **kwargs) -> None:
kwargs["expand_path"] = False
return await super()._rm(*args, **kwargs)

0 comments on commit 9e67bb4

Please sign in to comment.