0

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);
  • 1
    What you mean by files "being tracked"? The files that are [opened](https://www.perforce.com/manuals/cmdref/Content/CmdRef/p4_opened.html) ? Or whether the files are part of workspace or being [ignored](https://www.perforce.com/manuals/cmdref/Content/CmdRef/p4_ignores.html) ? – Tatranskymedved May 31 '23 at 09:52
  • the files that are in my workspace, that I already added with mark for add. I want to check if a file is only local – Jonas Knohl May 31 '23 at 12:42

0 Answers0