title: Perforce P4J getting change lists for a directory
body: <p>I am trying to get the changelists on a directory using P4J. Here is the snippet I used, </p>
  
  <pre><code>P4JServer server = //get a valid server using username/pwd
  List&lt;P4JFileSpec&gt; fileSpec = P4JFileSpecBuilder.makeFileSpecList(new String[]{"//depot/se/mydir"}); //a valid directory
  if(P4JFileSpecBuilder.getValidFileSpecs(fileSpec).isEmpty()) {
      throw new RuntimeException("File spec invalid for [" + depotPath + "]"); 
  }
  List&lt;P4JChangeList&gt; changes = server.getChangeLists(10, fileSpec, null, null, true, true, false, true);
  System.out.println(changes.size()); //prints 0 here   
  </code></pre>
  
  <p>However if I used "//depot/se/myfile" which is a valid file this prints changelists. Am I doing something wrong? I need changelists on a directory.</p>