F´ Flight Software - C/C++ Documentation  NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FileSystem.hpp File Reference

Go to the source code of this file.

Namespaces

 Os
 
 Os::FileSystem
 

Macros

#define FILE_SYSTEM_CHUNK_SIZE   (256)
 

Enumerations

enum  Os::FileSystem::Status {
  Os::FileSystem::OP_OK, Os::FileSystem::ALREADY_EXISTS, Os::FileSystem::NO_SPACE, Os::FileSystem::NO_PERMISSION,
  Os::FileSystem::NOT_DIR, Os::FileSystem::IS_DIR, Os::FileSystem::NOT_EMPTY, Os::FileSystem::INVALID_PATH,
  Os::FileSystem::FILE_LIMIT, Os::FileSystem::BUSY, Os::FileSystem::OTHER_ERROR
}
 

Functions

Status Os::FileSystem::createDirectory (const char *path)
 create a new directory at location path More...
 
Status Os::FileSystem::removeDirectory (const char *path)
 remove a directory at location path More...
 
Status Os::FileSystem::readDirectory (const char *path, const U32 maxNum, Fw::EightyCharString fileArray[], U32 &numFiles)
 read the contents of a directory. Size of fileArray should be maxNum. Cleaner implentation found in Directory.hpp More...
 
Status Os::FileSystem::removeFile (const char *path)
 removes a file at location path More...
 
Status Os::FileSystem::moveFile (const char *originPath, const char *destPath)
 
Status Os::FileSystem::copyFile (const char *originPath, const char *destPath)
 moves a file from origin to destination More...
 
Status Os::FileSystem::appendFile (const char *originPath, const char *destPath, bool createMissingDest=false)
 copies a file from origin to destination More...
 
Status Os::FileSystem::getFileSize (const char *path, U64 &size)
 append file origin to destination file. If boolean true, creates a brand new file if the destination doesn't exist. More...
 
Status Os::FileSystem::getFileCount (const char *directory, U32 &fileCount)
 counts the number of files in the given directory More...
 
Status Os::FileSystem::changeWorkingDirectory (const char *path)
 move current directory to path More...
 
Status Os::FileSystem::getFreeSpace (const char *path, U64 &totalBytes, U64 &freeBytes)
 get FS free and total space in bytes on filesystem containing path More...
 

Macro Definition Documentation

◆ FILE_SYSTEM_CHUNK_SIZE

#define FILE_SYSTEM_CHUNK_SIZE   (256)

Definition at line 8 of file FileSystem.hpp.