我只想知道使用p4api在用户本地机器上创建的所有工作区的位置。
例如,如果用户将'MyProject‘工作区映射到位置:"D:\LocalPerforce\MyWS“,那么我想知道这个路径-> "D:\LocalPerforce\MyWS”
我将有用户的必要信息。我遇到了GetClientFileMappings(),但不确定如何使用它,否则会有帮助。如何在c#中实现这一点。
发布于 2016-03-18 09:09:57
我是通过以下代码解决方案实现这一目标的:
IList<Client> clients = rep.GetClients(new Options());
localPaths.AddRange(from client in clients
where !string.IsNullOrEmpty(client.OwnerName) && client.OwnerName.Contains(User)
select client.Root);https://stackoverflow.com/questions/36063034
复制相似问题