Is there a way to check if a file is tracked in p4api with C# using just the file path?

39 Views Asked by At

I am using the p4api and want to check weather a File is tracked or not. Thing is I only have the full path and not the depot path.

FileSpec fs = new FileSpec(new DepotPath(filePath), VersionSpec.Head);
IList<FileSpec> lfs = new List<FileSpec>();
lfs.Add(fs);
Options options = new Options();
var a = _repository.GetFiles(lfs, options);
0

There are 0 best solutions below