title: Is there any method to know whether a directory contain a sub directory?
body: <p>I am woking in c++.
  Is there any method to know whether a directory contain a sub directory?</p>
  
  <p>CFileFind seems have to search through total files.
  It is time consuming if the only subdirectory is at the end of the list and the there are lots of files.</p>
  
  <p>for example: directory A contains 99995 files and one subdirectory at the end of FindNextFile List. had I try 99995 times, then say: yes, it contains subdirectory?</p>