29#ifndef _FS_PORT_RL_FS_H
30#define _FS_PORT_RL_FS_H
37#ifndef FS_MAX_PATH_LEN
38 #define FS_MAX_PATH_LEN 260
39#elif (FS_MAX_PATH_LEN < 1)
40 #error FS_MAX_PATH_LEN parameter is not valid
62 char_t pattern[FS_MAX_PATH_LEN + 1];
70bool_t fsFileExists(
const char_t *path);
71error_t fsGetFileSize(
const char_t *path, uint32_t *size);
73error_t fsRenameFile(
const char_t *oldPath,
const char_t *newPath);
74error_t fsDeleteFile(
const char_t *path);
76FsFile *fsOpenFile(
const char_t *path, uint_t mode);
79error_t fsReadFile(
FsFile *file,
void *data,
size_t size,
size_t *length);
80void fsCloseFile(
FsFile *file);
82bool_t fsDirExists(
const char_t *path);
83error_t fsCreateDir(
const char_t *path);
84error_t fsRemoveDir(
const char_t *path);
86FsDir *fsOpenDir(
const char_t *path);
88void fsCloseDir(
FsDir *dir);
error_t
Error codes.
Definition error.h:43
void FsFile
File descriptor.
Definition fs_port_fatfs.h:60
void FsDir
Directory descriptor.
Definition fs_port_fatfs.h:67
void FsFile
File descriptor.
Definition fs_port_rl_fs.h:53
Directory entry.
Definition fs_port.h:108
Directory descriptor.
Definition fs_port_posix.h:60
File status.
Definition fs_port.h:96