Python 应用程序:如何推送文件

Python 应用程序:如何推送文件,python,android,appium,Python,Android,Appium,我尝试使用appium将文件推入我的设备 当我在windows计算机中看到我的设备时,这是toor路径: This PC\P00A\Internal shared storage 因此,如果我想从我的计算机中移动此文件: C:\file.txt 我尝试使用以下命令: self.driver.push_file('C:\file.txt', android_path) 但是我应该放什么路径来代替android路径呢?我正在尝试写入SD卡参数顺序不正确,根据它应该是: driver.push_

我尝试使用
appium
将文件推入我的设备

当我在windows计算机中看到我的设备时,这是toor路径:

This PC\P00A\Internal shared storage
因此,如果我想从我的计算机中移动此文件:

C:\file.txt
我尝试使用以下命令:

self.driver.push_file('C:\file.txt', android_path)

但是我应该放什么路径来代替android路径呢?我正在尝试写入SD卡

参数顺序不正确,根据它应该是:

driver.push_file("/sdcard/file.txt","c:/file.txt")
                   #remote path      local path
您可能还对允许执行任意命令的扩展感兴趣,如:

seetest.run("adb push c:/file.txt /sdcard/file.txt");

参数的顺序不正确,根据它应该是:

driver.push_file("/sdcard/file.txt","c:/file.txt")
                   #remote path      local path
您可能还对允许执行任意命令的扩展感兴趣,如:

seetest.run("adb push c:/file.txt /sdcard/file.txt");

/sdcard/file.txt应该可以工作/sdcard/file.txt应该可以工作