title: What is the C++ equivalent of PHP's is_dir()?
body: <p>What is the C++ equivalent of PHP's is_dir() ?</p>
  
  <p><a href="http://www.php.net/manual/en/function.is-dir.php" rel="nofollow noreferrer">http://www.php.net/manual/en/function.is-dir.php</a></p>
  
  <blockquote>
  bool is_dir ( string $filename )   <br />
  Tells whether the given filename is a directory.
  </blockquote>
  
  <p>Working on a Linux platform only, what library would you use?</p>
  
  <p>And what if cross-platform support mattered, what method would you use?</p>