Modification of Mbed-dev library for LQFP48 package microcontrollers: STM32F103C8 (STM32F103C8T6) and STM32F103CB (STM32F103CBT6) (Bluepill boards, Maple mini etc. )

Fork of mbed-STM32F103C8_org by Nothing Special

Embed: (wiki syntax)

« Back to documentation index

FileSystemLike Class Reference

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 FileHandleopen (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 DirHandleopendir (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:
nameThe name to use for the filesystem.