static void Test_ListDirFiles(Args _args)
{
FilePath filePath = 'X:\\DATA\\MyFolder';
FileNameFilter fileFilter = ["*.*", "All files"];
FileName fileName;
int fileHandle;
;
[fileHandle, fileName] = WinAPI::findFirstFile(strFmt("%1\\%2", filePath, conPeek(fileFilter, 1)));
while(fileName)
{
info(strFmt("%1%2", filePath, fileName));
fileName = winAPI::findNextFile(fileHandle);
}
}
No comments:
Post a Comment