pure-python-adb icon indicating copy to clipboard operation
pure-python-adb copied to clipboard

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

Open MauseHund opened this issue 4 years ago • 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.

MauseHund avatar Oct 20 '21 11:10 MauseHund

Are you trying to pull or push the file?

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

ebisek-logi avatar Oct 20 '21 13:10 ebisek-logi

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

MauseHund avatar Oct 20 '21 13:10 MauseHund

Wrong ppadb command. Use pull not push

ebisek-logi avatar Oct 20 '21 15:10 ebisek-logi