 |
F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file. 1 #ifndef _FileSystem_hpp_
2 #define _FileSystem_hpp_
8 #define FILE_SYSTEM_CHUNK_SIZE (256)
13 namespace FileSystem {
35 Status appendFile(
const char* originPath,
const char* destPath,
bool createMissingDest=
false);
Status getFileCount(const char *directory, U32 &fileCount)
counts the number of files in the given directory
Status copyFile(const char *originPath, const char *destPath)
moves a file from origin to destination
Status readDirectory(const char *path, const U32 maxNum, Fw::EightyCharString fileArray[])
Status removeDirectory(const char *path)
remove a directory at location path
Status changeWorkingDirectory(const char *path)
move current directory to path
@ NOT_DIR
Path is not a directory.
@ OTHER_ERROR
other OS-specific error
Status moveFile(const char *originPath, const char *destPath)
@ NOT_EMPTY
directory is not empty
@ OP_OK
Operation was successful.
@ INVALID_PATH
Path is too long, too many sym links, doesn't exist, ect.
@ IS_DIR
Path is a directory.
Status appendFile(const char *originPath, const char *destPath, bool createMissingDest=false)
copies a file from origin to destination
@ ALREADY_EXISTS
File already exists.
Status getFreeSpace(const char *path, U64 &totalBytes, U64 &freeBytes)
get FS free and total space in bytes on filesystem containing path
@ FILE_LIMIT
Too many files or links.
Status createDirectory(const char *path)
create a new directory at location path
@ NO_PERMISSION
No permission to write.
Declares ISF basic types.
Status getFileSize(const char *path, U64 &size)
append file origin to destination file. If boolean true, creates a brand new file if the destination ...
@ BUSY
Operand is in use by the system or by a process.
Status removeFile(const char *path)
removes a file at location path