The code from https://github.com/vpcola/Nucleo
FATFileSystem Class Reference
FATFileSystem based on ChaN's Fat Filesystem library v0.8. More...
#include <FATFileSystem.h>
Inherits mbed::FileSystemLike.
Inherited by MemFileSystem, and SDFileSystem.
Public Member Functions | |
virtual FileHandle * | open (const char *name, int flags) |
Opens a file on the filesystem. | |
virtual int | stat (const char *name, FILINFO *) |
Gets information on a file. | |
virtual int | remove (const char *filename) |
Removes a file path. | |
virtual int | format () |
Formats a logical drive, FDISK artitioning rule, 512 bytes per cluster. | |
virtual DirHandle * | opendir (const char *name) |
Opens a directory on the filesystem. | |
virtual int | mkdir (const char *name, mode_t mode) |
Creates a directory path. | |
virtual int | rename (const char *oldname, const char *newname) |
Rename a file in the filesystem. |
Detailed Description
FATFileSystem based on ChaN's Fat Filesystem library v0.8.
Definition at line 35 of file FATFileSystem.h.
Member Function Documentation
int format | ( | ) | [virtual] |
Formats a logical drive, FDISK artitioning rule, 512 bytes per cluster.
Definition at line 126 of file FATFileSystem.cpp.
int mkdir | ( | const char * | name, |
mode_t | mode | ||
) | [virtual] |
Creates a directory path.
Reimplemented from FileSystemLike.
Definition at line 144 of file FATFileSystem.cpp.
FileHandle * open | ( | const char * | name, |
int | flags | ||
) | [virtual] |
Opens a file on the filesystem.
Implements FileSystemLike.
Definition at line 68 of file FATFileSystem.cpp.
DirHandle * opendir | ( | const char * | name ) | [virtual] |
Opens a directory on the filesystem.
Reimplemented from FileSystemLike.
Definition at line 135 of file FATFileSystem.cpp.
int remove | ( | const char * | filename ) | [virtual] |
Removes a file path.
Reimplemented from FileSystemLike.
Definition at line 117 of file FATFileSystem.cpp.
virtual int rename | ( | const char * | oldname, |
const char * | newname | ||
) | [virtual, inherited] |
Rename a file in the filesystem.
- Parameters:
-
oldname the name of the file to rename. newname the name to rename it to.
- Returns:
- 0 on success, -1 on failure.
Definition at line 75 of file FileSystemLike.h.
int stat | ( | const char * | name, |
FILINFO * | info | ||
) | [virtual] |
Gets information on a file.
Definition at line 102 of file FATFileSystem.cpp.
Generated on Tue Jul 12 2022 18:55:02 by 1.7.2