vfs_delete() implement deleting files
This commit is contained in:
@ -53,6 +53,7 @@ typedef struct VfsMountPoint {
|
||||
int32_t (*stat)(struct VfsMountPoint *vmp, const char *path, FsStat *statbuf);
|
||||
int32_t (*fetchdirent)(struct VfsMountPoint *vmp, const char *path, FsDirent *direntbuf, size_t idx);
|
||||
int32_t (*mkdir)(struct VfsMountPoint *vmp, const char *path);
|
||||
int32_t (*delete)(struct VfsMountPoint *vmp, const char *path);
|
||||
|
||||
union {
|
||||
LittleFs littlefs;
|
||||
@ -75,5 +76,6 @@ VfsObj *vfs_open(char *mountpoint, const char *path, uint32_t flags);
|
||||
int32_t vfs_stat(char *mountpoint, const char *path, FsStat *stat);
|
||||
int32_t vfs_fetchdirent(char *mountpoint, const char *path, FsDirent *direntbuf, size_t idx);
|
||||
int32_t vfs_mkdir(char *mountpoint, const char *path);
|
||||
int32_t vfs_delete(char *mountpoint, const char *path);
|
||||
|
||||
#endif // VFS_VFS_H_
|
||||
|
||||
Reference in New Issue
Block a user