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.
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 LocalFileSystem.
Public Member Functions | |
MBED_DEPRECATED_SINCE ("mbed-os-5.4","The mbed 2 filesystem classes have been superseeded by the FileSystem api, ""Replaced by FileSystem") 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. | |
virtual int | stat (const char *name, struct stat *st) |
Store information about file in stat structure. |
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.
Member Function Documentation
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.4" | , |
"The mbed 2 filesystem classes have been superseeded by the FileSystem | api, | ||
""Replaced by FileSystem" | |||
) | const |
FileSystemLike constructor.
- Parameters:
-
name The name to use for the filesystem.
Generated on Tue Jul 12 2022 17:41:26 by
