/*
  * MakeSureDirectoryExistA
  *      WinAPI-like function to make sure a directory exists, if not, create it
  *      @szPath: Directory to check
  */
 inline BOOL MakeSureDirectoryExistA(LPCTSTR szPath)
 {
     if(!IsDirectoryA(szPath))
     {
         CreateDirectoryA(szPath, NULL);
         return FALSE;
     }
     return TRUE;
 }
예제 #2
0
 bool DirectoryInfo::_IsDirectory(LPCTSTR dirName)
 { return IsDirectoryA(dirName); }