diff --git a/uiautomator2/__init__.py b/uiautomator2/__init__.py index 747e6e4..0bcc910 100644 --- a/uiautomator2/__init__.py +++ b/uiautomator2/__init__.py @@ -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: