#include <stdio.h>
static void
_print_cb(
const char *name,
const char *path,
void *data
EINA_UNUSED)
{
printf("file %s in %s\n", name, path);
}
int
{
const char *f_name;
{
printf("%s\n", f_name);
}
printf(
"%s if of type %d\n", f_info->
path, f_info->
type);
printf(
"%s if of type %d\n", f_info->
path, f_info->
type);
return 0;
}
Eina_Iterator * eina_file_stat_ls(const char *dir)
Gets an iterator to list the content of a directory, with direct information.
Definition: eina_file.c:731
EAPI Eina_Bool eina_file_dir_list(const char *dir, Eina_Bool recursive, Eina_File_Dir_List_Cb cb, void *data) EINA_ARG_NONNULL(1
Lists all the files on the directory by calling the function for every file found.
Eina_Iterator * eina_file_direct_ls(const char *dir)
Gets an iterator to list the content of a directory, with direct information.
Definition: eina_file.c:671
EAPI int eina_init(void)
Initializes the Eina library.
Definition: eina_main.c:279
void eina_stringshare_del(Eina_Stringshare *str)
Notes that the given string has lost an instance.
Definition: eina_stringshare.c:533
#define EINA_ITERATOR_FOREACH(itr, data)
Definition for the macro to iterate over all elements easily.
Definition: eina_iterator.h:448
EAPI int eina_shutdown(void)
Shuts down the Eina library.
Definition: eina_main.c:350
Eina_Iterator * eina_file_ls(const char *dir)
Gets an iterator to list the content of a directory.
Definition: eina_file.c:623