29#ifndef _FS_PORT_POSIX_H
30#define _FS_PORT_POSIX_H
36#ifndef FS_MAX_PATH_LEN
37 #define FS_MAX_PATH_LEN 260
38#elif (FS_MAX_PATH_LEN < 1)
39 #error FS_MAX_PATH_LEN parameter is not valid
62 char_t path[FS_MAX_PATH_LEN + 1];
69bool_t fsFileExists(
const char_t *path);
70error_t fsGetFileSize(
const char_t *path, uint32_t *size);
72error_t fsRenameFile(
const char_t *oldPath,
const char_t *newPath);
73error_t fsDeleteFile(
const char_t *path);
75FsFile *fsOpenFile(
const char_t *path, uint_t mode);
78error_t fsReadFile(
FsFile *file,
void *data,
size_t size,
size_t *length);
79void fsCloseFile(
FsFile *file);
81bool_t fsDirExists(
const char_t *path);
82error_t fsCreateDir(
const char_t *path);
83error_t fsRemoveDir(
const char_t *path);
85FsDir *fsOpenDir(
const char_t *path);
87void 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_posix.h:52
Directory entry.
Definition fs_port.h:108
Directory descriptor.
Definition fs_port_posix.h:60
File status.
Definition fs_port.h:96