Commit 5a34acb5 authored by Ivan Dokunov's avatar Ivan Dokunov

Add FolderIterator test

parent 5b02a58a
......@@ -173,9 +173,20 @@ int main(int argc, char **argv)
printf("Unable to open file!\n");
}
IFileSystem::IFileIterator *it = pFS->getFileList("dir/dir1");
printf("########## File iterator test ###########################\n");
while (const char *file = it->next())
IFileSystem::IFileIterator *itFile = pFS->getFileList("dir/dir1");
while (const char *file = itFile->next())
{
printf("%s \n", file);
}
printf("########## Folder iterator test ###########################\n");
IFileSystem::IFileIterator *itDirectory = pFS->getFolderList("dir/dir1");
while (const char *file = itDirectory->next())
{
printf("%s \n", file);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment