首页 > 解决方案 > 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.

标签: pythonsynchronizationstructurep4pythondepot

解决方案


解决了。

正确命令:p4.run("files", '//folder1/Trunk/projects/...')


推荐阅读