开发者

List of Current Folder files ONLY?

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.


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;-).


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜