我正在使用Perforce .NET API P4API.NET库,我想知道是否有一个"p4文件“命令行等效项,我可以调用它来返回我的//.NET中的文件列表(比如*.cpp)?提前感谢!
发布于 2012-08-18 00:59:18
这是一个适用于我的代码片段。
IList<FileSpec> filesToFind = new List<FileSpec>();
FileSpec fileToFind = new FileSpec(new DepotPath("//depot/....cpp"), null, null, VersionSpec.Head);
filesToFind.Add(fileToFind);
IList<FileSpec> filesFound = pRep.GetDepotFiles(filesToFind, null);发布于 2012-08-16 08:56:20
快速浏览一下the docs并不会立即显示任何内容,但是您始终可以使用P4Command.Run来运行任意的Perforce命令,因此您仍然可以运行p4 files //depot/...cpp。
https://stackoverflow.com/questions/11979091
复制相似问题