[Win32]현재 디렉토리 내 모든 파일 리스트 만들기
현재 디렉토리 내에 있는 모든 파일만 표시 해 보기 좀 어줍잖게 짜기 해도 뭐...윈도우 용이므로 *NIX 계열은 아님 상수로 검색할 디렉토리를 아규먼트로 받아서 처리 한다. bool searchFilesDirectory(const char *sDir) { WIN32_FIND_DATA fdFile; HANDLE hFind = NULL; char sPath[2048]; char buffer [10240]; if(!sDir) return false; sprintf(sPath, "%s\\*.*", sDir); if((hFind = FindFirstFile(sPath, &fdFile)) == INVALID_HANDLE_VALUE) { LOG_TRACE(LOG_ERROR, "2.Path not found: %s\..
2023.03.16