title: boost::filesystem exists() on directory path fails, but is_directory() is ok
body: <p>I'm getting path to current directory with boost filesystem, then checking if the directory exists.</p>
  
  <p><code>is_directory()</code> is ok, but <code>exists()</code> fails on the same path, am I missing something?</p>
  
  <p>Example code (boost 1.35):</p>
  
  <pre><code>#include &lt;boost/filesystem/operations.hpp&gt;
  #include &lt;boost/filesystem/path.hpp&gt;
  
  namespace fs = boost::filesystem;
  
  // the path is full path /home/my/somedirectory    
  fs::path data_dir(fs::current_path());
  
  fs::is_directory(data_dir)  // true, directory exists
  
  fs::exists(data_dir)   // false
  exists(status(data_dir))  // false
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <pre><code>#include &lt;boost/filesystem/operations.hpp&gt;
  #include &lt;boost/filesystem/path.hpp&gt;
  namespace fs = boost::filesystem;
  
  fs::path data_dir(fs::current_path());
  // data_dir == "/home/myusername/proj/test"
  
  if (fs::is_directory(data_dir))             // true - is directory
  if (fs::is_directory(fs::status(data_dir))) // true - it is still a directory
  </code></pre>
  
  <p>Fun part:</p>
  
  <pre><code>if (fs::exists(fs::status(data_dir)))       // true - directory exists
  if (fs::exists( data_dir ))                 // true - directory exists
  </code></pre>
  
  <p>BUT:</p>
  
  <pre><code>if (!fs::exists(fs::status(data_dir)))      // false - directory still exists
  if (!fs::exists( data_dir ))                // true  - directory does not exists
  </code></pre>