Struct in stdx_filesystem.h

XFSDireHandle

typedef struct XFSDireHandle_t XFSDireHandle;
Function in stdx_filesystem.h

x_fs_find_close

Close a directory enumeration handle.

X_FILESYSTEM_API void x_fs_find_close(XFSDireHandle *dirHandle);

Parameters

XFSDireHandle *dirHandle
Enumeration handle to close.

Returns

Nothing.

Function in stdx_filesystem.h

x_fs_find_first_file

Begin a directory enumeration and retrieve the first entry.

X_FILESYSTEM_API XFSDireHandle * x_fs_find_first_file(
 const char *path,
 XFSDireEntry *entry
);

Parameters

const char *path
Directory path to search.
XFSDireEntry *entry
Output directory entry filled with the first result.

Returns

Handle used for subsequent enumeration, or NULL on failure.

Function in stdx_filesystem.h

x_fs_find_next_file

Continue a directory enumeration and retrieve the next entry.

X_FILESYSTEM_API bool x_fs_find_next_file(
 XFSDireHandle *dirHandle,
 XFSDireEntry *entry
);

Parameters

XFSDireHandle *dirHandle
Enumeration handle returned by x_fs_find_first_file().
XFSDireEntry *entry
Output directory entry filled with the next result.

Returns

True if an entry was written, false if no more entries or on failure.