title: MFC Equivalent to Java File#isDirectory()
body: <p>Is there an equivalent to the Java File method <strong>isDirectory()</strong> in MFC? I tried using this :</p>
  
  <pre><code>
  static bool isDirectory(CString &path) {
    return GetFileAttributes(path) & FILE_ATTRIBUTE_DIRECTORY;   
  }
  </code></pre>
  
  <p>but it doesn't seem to work.</p>