Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
fs_dirent Struct Reference

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

#include <fs.h>

Data Fields

enum fs_dir_entry_type type
 
char name [MAX_FILE_NAME+1]
 
size_t size
 

Detailed Description

Structure to receive file or directory information.

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

Parameters
dir_entry_typeWhether file or directory
  • FS_DIR_ENTRY_FILE
  • FS_DIR_ENTRY_DIR
nameName of directory or file
sizeSize of file. 0 if directory

Field Documentation

◆ name

char fs_dirent::name[MAX_FILE_NAME+1]

◆ size

size_t fs_dirent::size

◆ type

enum fs_dir_entry_type fs_dirent::type

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