title: Perforce .net API sync depot files
body: <p>Since its difficult for me to understand P4 API documentation, I need help. I have a folder in a depot, say <code>//root/a/...</code> first I am running a preview to know the number of files going to be synced on a changelist, say <code>123</code>.</p>
  
  <pre><code>Client.ViewMap = new ViewMap();
  Client.ViewMap.Add("//root/a/...", "//" + myWrkSpace + "/a/...", MapType.Include);
  Options sFlags = new Options( SyncFilesCmdFlags.Preview, 123 );
  rFiles = rep.Connection.Client.SyncFiles(sFlags, null);
  </code></pre>
  
  <p>In <code>rFiles</code> I should get the file list that are going to be synced (sync preview, I will be syncing each file in a background worker), but its returning me all the depot files (files in //root)</p>
  
  <p>Can anyone please help?
  Regards</p>