Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
fs_dirent Struct Reference

Structure to receive file or directory information. More...

#include <fs.h>

Data Fields

enum fs_dir_entry_type type
 File/directory type (FS_DIR_ENTRY_FILE or FS_DIR_ENTRY_DIR)
 
char name [MAX_FILE_NAME+1]
 Name of file or directory.
 
size_t size
 Size of file (0 if directory).
 

Detailed Description

Structure to receive file or directory information.

Used in functions that read the directory entries to get file or directory information.

Field Documentation

◆ name

char fs_dirent::name[MAX_FILE_NAME+1]

Name of file or directory.

◆ size

size_t fs_dirent::size

Size of file (0 if directory).

◆ type

enum fs_dir_entry_type fs_dirent::type

File/directory type (FS_DIR_ENTRY_FILE or FS_DIR_ENTRY_DIR)


The documentation for this struct was generated from the following file: