仅当前文件夹文件列表?

发布于 2024-08-16 05:18:33 字数 193 浏览 2 评论 0原文

您好,我正在尝试使用 Perforce 语法来获取(例如使用“fstat”)仅在给定文件夹(仓库)中的文件列表,而不包含所有子文件夹中的垃圾。但我无法在文档中找到任何内容,使用谷歌时没有任何相关内容,甚至尝试使用“.”,“.../.”等等,让我无处可去……

那是因为它根本不可能吗?我不明白为什么……这不是表演反击吗?!

提前致谢。 塞布。

Hello I'm trying to get Perforce syntax to obtain (for example using "fstat") list of files only in given folder (depot), without rubbish from all sub-folders. But I was not able to find anything in the docs, nothing related when using Google, even experimenting with ".", ".../." etc. lead me to nowhere...

Is that because it's not possible at all? I can't understand why... Isn't that a performance back hit?!

Thanks in advance.
Seb.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

平定天下 2024-08-23 05:18:33

在 p4 中,单个“*”扩展为“此目录中的所有文件”(无子目录)。因此,例如在 Unix shell 提示符下,在 perforce 客户端的正确目录中:

$ p4 fstat '*'

当然,您需要引用或转义 * 以避免 shell 扩展它; -)。

A single '*' expands to "all files in this directory" in p4 (no subdirectories). So, e.g. at a Unix shell prompt, in the correct directory in a perforce client:

$ p4 fstat '*'

You need to quote or escape the * to avoid the shell expanding it, of course;-).

憧憬巴黎街头的黎明 2024-08-23 05:18:33

终于啊。

这部分是我自己的错 - 我将 ExceptionLevel 设置为 ExceptionOnBothErrorsAndWarnings...我需要完整的调试...不幸的是:

  1. 当引发异常时 - 没有创建 Response 对象,并且我无法读取警告消息,这不是'异常消息(或对象)的一部分。
  2. 使用“//depot/Folder1/Folderx/*”引发警告“没有这样的文件!” - 开发人员可能不希望发生什么...因为不是任何特殊情况...

但看来我在 Perforce 上还有很多东西需要学习:-/

谢谢你们的发帖。
塞布。

Ah finally.

It was partially my own fault - I'd set ExceptionLevel to ExceptionOnBothErrorsAndWarnings... I needed full debug... Unfortunately:

  1. When exception was raised - there was no Response object created, and I could not read the warning message, which wasn't part of the exception message (or object).
  2. Using '//depot/Folder1/Folderx/*' thrown warning "No such file(s)!" - what is not something that developer might expect... As not being any special case...

It seems that I have still much to learn on the Perforce though :-/

Thank you guys for your posting.
Seb.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文