17#ifndef MBED_FILESYSTEMHANDLE_H
18#define MBED_FILESYSTEMHANDLE_H
20#include "platform/platform.h"
22#include "platform/FileHandle.h"
23#include "platform/DirHandle.h"
24#include "platform/NonCopyable.h"
71 virtual int remove(
const char *path);
79 virtual int rename(
const char *path,
const char *newpath);
87 virtual int stat(
const char *path,
struct stat *st);
95 virtual int mkdir(
const char *path, mode_t mode);
Represents a directory stream.
A filesystem-like object is one that can be used to open file-like objects though it by fopen("/name/...
virtual int mkdir(const char *path, mode_t mode)
Create a directory in the filesystem.
virtual ~FileSystemHandle()
FileSystemHandle lifetime.
virtual int stat(const char *path, struct stat *st)
Store information about the file in a stat structure.
virtual int open(FileHandle **file, const char *filename, int flags)=0
Open a file on the filesystem.
virtual int remove(const char *path)
Remove a file from the filesystem.
virtual int statvfs(const char *path, struct statvfs *buf)
Store information about the mounted filesystem in a statvfs structure.
virtual int rename(const char *path, const char *newpath)
Rename a file in the filesystem.
virtual int open(DirHandle **dir, const char *path)
Open a directory on the filesystem.
Prevents generation of copy constructor and copy assignment operator in derived classes.