Closed miraclemie closed 1 year ago
BaiduPCS-Py save "url" "/path/to/remote directory with space"
BaiduPCS-Py save "url" "/path/to/remote directory with space"
我这个在命令行中执行是没有问题的,但是通过subprocess的管道运行就是会把空格前面的给忽略掉
import subprocess
cmd = [
"BaiduPCS-Py", "save", "-p", "pass", "url", "/path/to/remote directory with space"
]
subprocess.call(cmd)
import subprocess cmd = [ "BaiduPCS-Py", "save", "-p", "pass", "url", "/path/to/remote directory with space" ] subprocess.call(cmd)
可以了,感谢
Prerequisites / 报告前提 Before you report a bug, please let the bug to be reproduced at the latest verion of BaiduPCS-Py. 在你提交报告前,请在 BaiduPCS-Py 的最新版本上复现问题。
At sometimes, there are errors occured by an expired cookie. Before you commit the report, please to check whether cookies are expired. 有时一些错误是由于某个 cookie 超期导致的。在你提交报告前,请先检查你的 cookies 是否超期。
Describe the bug / 描述 bug A clear and concise description of what the bug is. 请清楚的描述你遇到的问题。
To Reproduce / 复现问题 Steps to reproduce the behavior:
按照下面的步骤可以复现问题:
Screenshots / 问题截图 If applicable, add screenshots to help explain your problem.
如果可能,请附加问题截图。
Envrionment / 运行环境
Runing log / 运行日志 Please follow steps to paste the content of file
~/.baidupcs-py/running.log
.~/.baidupcs-py/running.log
if it exists.LOG_LEVEL=DEBUG
. e.g.LOG_LEVEL=DEBUG BaiduPCS-Py upload /abc /
~/.baidupcs-py/running.log
after the bug occurs.请按照下面的步骤贴出运行日志
~/.baidupcs-py/running.log
中的内容。~/.baidupcs-py/running.log
,如果存在。LOG_LEVEL=DEBUG
。 例如:LOG_LEVEL=DEBUG BaiduPCS-Py upload /abc /
~/.baidupcs-py/running.log
中的内容。Additional context / 补充内容 Add any other context about the problem here. 在这里增加补充内容。