Swind / pure-python-adb

This is pure-python implementation of the ADB client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

device.push with error FileNotFoundError("Cannot find {}".format(src))

MauseHund opened this issue · comments

device.push('/sdcard/test.txt','c:/test/test.txt')

leads to the following error:

raise FileNotFoundError("Cannot find {}".format(src))
FileNotFoundError: Cannot find /sdcard/test.txt

Any idea what I am doing wrong with the call? Phone is connected. sdcard/test.txt does exist
and the folder c:\test\ on PC does exist as well.

Are you trying to pull or push the file?

This looks like a pull. Anyway the destination should not specify the filename

Trying to receive the content of the mobile sdcard and store it in the c:\test folder

Wrong ppadb command. Use pull not push