#include <fat32.h>
| miosix::Fat32Fs::~Fat32Fs |
( |
| ) |
|
| int miosix::Fat32Fs::lstat |
( |
StringPart & |
name, |
|
|
struct stat * |
pstat |
|
) |
| |
|
virtual |
Obtain information on a file, identified by a path name. Does not follow symlinks
- Parameters
-
| name | path name, relative to the local filesystem |
| pstat | file information is stored here |
- Returns
- 0 on success, or a negative number on failure
Implements miosix::FilesystemBase.
| int miosix::Fat32Fs::mkdir |
( |
StringPart & |
name, |
|
|
int |
mode |
|
) |
| |
|
virtual |
Create a directory
- Parameters
-
| name | directory name |
| mode | directory permissions |
- Returns
- 0 on success, or a negative number on failure
Implements miosix::FilesystemBase.
| bool miosix::Fat32Fs::mountFailed |
( |
| ) |
const |
|
inline |
- Returns
- true if the filesystem failed to mount
Open a file
- Parameters
-
| file | the file object will be stored here, if the call succeeds |
| name | the name of the file to open, relative to the local filesystem |
| flags | file flags (open for reading, writing, ...) |
| mode | file permissions |
- Returns
- 0 on success, or a negative number on failure
Implements miosix::FilesystemBase.
| int miosix::Fat32Fs::rename |
( |
StringPart & |
oldName, |
|
|
StringPart & |
newName |
|
) |
| |
|
virtual |
Rename a file or directory
- Parameters
-
| oldName | old file name |
| newName | new file name |
- Returns
- 0 on success, or a negative number on failure
Implements miosix::FilesystemBase.
| int miosix::Fat32Fs::rmdir |
( |
StringPart & |
name | ) |
|
|
virtual |
Remove a directory if empty
- Parameters
-
- Returns
- 0 on success, or a negative number on failure
Implements miosix::FilesystemBase.
| int miosix::Fat32Fs::unlink |
( |
StringPart & |
name | ) |
|
|
virtual |
Remove a file or directory
- Parameters
-
| name | path name of file or directory to remove |
- Returns
- 0 on success, or a negative number on failure
Implements miosix::FilesystemBase.
The documentation for this class was generated from the following files: