silc_dir_read

SYNOPSIS

    SilcDirEntry silc_dir_read(SilcDir dir, SilcFileStat status);

DESCRIPTION

Reads next entry (file) from the directory `dir'. The silc_dir_open must be called first before reading from the directory. Returns the next entry context or NULL if there are no more entries or error occurs. In case of error the silc_errno is also set.

If the `status' is non-NULL this will also call silc_file_stat and returns the status into the `status' pointer.

The returned context remains valid until the silc_dir_read is called again.