Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510
FileSystemLike Class Reference
[Drivers]
A filesystem-like object is one that can be used to open files though it by fopen("/name/filename", mode) More...
#include <FileSystemLike.h>
Inherits mbed::FileBase.
Inherited by FATFileSystem, and LocalFileSystem.
Public Member Functions | |
FileSystemLike (const char *name) | |
FileSystemLike constructor. | |
virtual FileHandle * | open (const char *filename, int flags)=0 |
Opens a file from the filesystem. | |
virtual int | remove (const char *filename) |
Remove a file from the filesystem. | |
virtual int | rename (const char *oldname, const char *newname) |
Rename a file in the filesystem. | |
virtual DirHandle * | opendir (const char *name) |
Opens a directory in the filesystem and returns a DirHandle representing the directory stream. | |
virtual int | mkdir (const char *name, mode_t mode) |
Creates a directory in the filesystem. |
Detailed Description
A filesystem-like object is one that can be used to open files though it by fopen("/name/filename", mode)
Implementations must define at least open (the default definitions of the rest of the functions just return error values).
Synchronization level: Set by subclass
Definition at line 37 of file FileSystemLike.h.
Constructor & Destructor Documentation
FileSystemLike | ( | const char * | name ) |
FileSystemLike constructor.
- Parameters:
-
name The name to use for the filesystem.
Definition at line 89 of file FileSystemLike.cpp.
Generated on Tue Jul 12 2022 11:03:20 by
