Swind/pure-python-adb

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

MauseHund opened this issue · 3 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