For brevity includes, variable declarations and initialization was omitted from this page, however the full source code can be seen here.
Here we have a simple callback to print the name of a file and the path that contains it:
We can use this callback in the following call:
The above was a way to print the files in a directory, but it is not the only one:
And now two ways to get more information than just file names:
The above ways of getting files on a list may produce the same output, but they have an important difference, eina_file_direct_ls() will not call stat, this means that on some systems it might not have file type information. On the other hand it might be faster than eina_file_stat_ls().