首页 > 解决方案 > 如何使用appium删除带有空格的文件?

问题描述

我正在测试我的应用程序,作为当前场景的一部分,我需要在完成测试后删除文件。

我的文件名带有空格:Application Log.txt

这是我尝试过的:

adb shell rm /sdcard/app name /logs/Application Log.txt

我收到了这条消息:

rm: name/logs/Application: No such file or directory
rm: Log.txt: No such file or directory

标签: pythonandroidappium

解决方案


也许它有助于逃离空间

Application\ Log.txt

可能有用的另一件事是将名称放在引号中

"Application Log.txt"

推荐阅读