title: filesystem directory_iterator not returning full file path
body: <p>EDIT: I'm using std::tr2::sys not boost's filesytem</p>
  
  <p>I'm working on a simple app that scans directories on the computer and returns statistics about those files. There are two ways that scan can be called: recursively and non-recursively. A path is passed into the scan method along with a flag for whether or not the scan should be done recursively. Given the <code>path folder</code> the two implementations look something like this:</p>
  
  <pre><code>directory_iterator start( folder ), end;
  for( ; start != end; ++start ) {
      //Some code in here
      // get the path like this:
      auto path = start-&gt;path();
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>recursive_directory_iterator start( folder ), end;
  for( ; start != end; ++start ) {
      //Some code in here
      // get the path like this:
      auto path = start-&gt;path();
  }
  </code></pre>
  
  <p>The problem I'm encountering is that in the block that uses the regular directory_iterator when I try and grab the path it will return only the file name ie. "myTextFile.txt" where as getting it from the recursive_directory_iterator returns the full path to the file on the system. In each case the value of folder is the same (a full file path as well). Is there a reason the front part of the path is getting chopped off or is there some way I can get the full file path from just the abbreviated one that I'm getting back from directory_iterator?</p>