Skip to content

Commit 9336c29

Browse files
EnderTheCoderEnderTheCoder
and
EnderTheCoder
authored
expose param exist_ok to _BaseClient api pull (#1058)
Co-authored-by: EnderTheCoder <ggameinvader@gmail.com>
1 parent b7a0c4f commit 9336c29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uiautomator2/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,11 @@ def push(self, src, dst: str, mode=0o644):
210210
"""
211211
self._dev.sync.push(src, dst, mode=mode)
212212

213-
def pull(self, src: str, dst: str):
213+
def pull(self, src: str, dst: str, exist_ok: bool = False):
214214
"""
215215
Pull file from device to local
216216
"""
217-
self._dev.sync.pull(src, dst)
217+
self._dev.sync.pull(src, dst, exist_ok)
218218

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

0 commit comments

Comments
 (0)