Skip to content

Commit

Permalink
expose param exist_ok to _BaseClient api pull (#1058)
Browse files Browse the repository at this point in the history
Co-authored-by: EnderTheCoder <ggameinvader@gmail.com>
  • Loading branch information
EnderTheCoder and EnderTheCoder authored Dec 5, 2024
1 parent b7a0c4f commit 9336c29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uiautomator2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ def push(self, src, dst: str, mode=0o644):
"""
self._dev.sync.push(src, dst, mode=mode)

def pull(self, src: str, dst: str):
def pull(self, src: str, dst: str, exist_ok: bool = False):
"""
Pull file from device to local
"""
self._dev.sync.pull(src, dst)
self._dev.sync.pull(src, dst, exist_ok)

# FIXME: check if windows still need f.close
# with open(dst, 'wb') as f:
Expand Down

0 comments on commit 9336c29

Please sign in to comment.