python - P4Python issue: p4run("files", 'path') returns - no such file(s) although returns single item dict for "dirs"
问题描述
I'm trying to read depot structure without syncing and got stuck on files listing.
Why this returns single-item dict:
p4.run("dirs", '//folder1/Trunk/projects')
but this:
p4.run("files", '//folder1/Trunk/projects')
Error:
[Warning]: '//folder1/Trunk/projects - no such file(s).'
Why is that?
There are other folders in that location and I would like to access some of them.
解决方案
解决了。
正确命令:p4.run("files", '//folder1/Trunk/projects/...')
推荐阅读
- android - 如何修复jetpack compose编译器错误?
- macos-big-sur - Rosetta 的 Mac M1 芯片问题,“附加代码签名补充失败:1”
- amazon-web-services - 即使没有 Vault,也不想为 Terraform 提供密钥 - 如何?
- java - Converting 0x1 to 1 in java
- django - 获取所有用户并将它们用于 django 中的收件人
- r - r中的选择性左连接
- micronaut - 如何在 Micronaut for Server 中模拟用于 Server StartupEvent 的客户端接口
- python - SortedDict 键:TypeError:“str”和“int”的实例之间不支持“<”
- wordpress - 为 WooCommerce 存档循环和产品页面图像添加前缀(用于 Cloudflare 图像调整大小)?
- istio - Istio - 重定向到 https 外部 url