python - 如何使用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
解决方案
也许它有助于逃离空间
Application\ Log.txt
可能有用的另一件事是将名称放在引号中
"Application Log.txt"
推荐阅读
- python - 为什么类的静态变量不能是类的实例?
- php - 如何在不重新登录的情况下重新加载会话
- python - PyTorch:将词向量加载到字段词汇表与嵌入层
- android - React Native - Android 模拟器设备
- python - 如何在 Python 中使用 RegEx 术语过滤迭代不同列表的文本?
- javascript - 从服务器获取数据时挂载的钩子(Promise/async)出错
- python - 代码在 VS Code 中运行,但不在终端中
- shell - 使用 find 在不同目录中调用具有多个输入参数的 shell 脚本
- r - 在 R 中重新分类栅格
- python - 19 位时间戳转换