F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
FileSystem.cpp
Go to the documentation of this file.
1#include <FpConfig.hpp>
2#include <Fw/Types/Assert.hpp>
3#include <Os/File.hpp>
4#include <Os/FileSystem.hpp>
5
6namespace Os {
7namespace FileSystem {
8Status createDirectory(const char* path) {
9 return NO_SPACE;
10} // end createDirectory
11
12Status removeDirectory(const char* path) {
13 return INVALID_PATH;
14} // end removeDirectory
15
16Status readDirectory(const char* path, const U32 maxNum, Fw::String fileArray[]) {
17 return OTHER_ERROR;
18}
19Status removeFile(const char* path) {
20 return OTHER_ERROR;
21} // end removeFile
22
23Status moveFile(const char* originPath, const char* destPath) {
24 return OTHER_ERROR;
25
26} // end moveFile
27
29 return OTHER_ERROR;
30} // end handleFileError
31
32Status copyFile(const char* originPath, const char* destPath) {
33 return OTHER_ERROR;
34} // end copyFile
35
36Status getFileSize(const char* path, FwSizeType& size) {
37 return OTHER_ERROR;
38} // end getFileSize
39
40Status changeWorkingDirectory(const char* path) {
41 return OTHER_ERROR;
42} // end changeWorkingDirectory
43// Public function to get the file count for a given directory.
44Status getFileCount(const char* directory, U32& fileCount) {
45 return OTHER_ERROR;
46} // end getFileCount
47Status appendFile(const char* originPath, const char* destPath, bool createMissingDest) {
48 return OTHER_ERROR;
49}
50Status getFreeSpace(const char* path, FwSizeType& totalBytes, FwSizeType& freeBytes) {
51 return OTHER_ERROR;
52}
53} // namespace FileSystem
54} // namespace Os
PlatformSizeType FwSizeType
Definition FpConfig.h:18
C++-compatible configuration header for fprime configuration.
Status getFileCount(const char *directory, U32 &fileCount)
counts the number of files in the given directory
Status getFreeSpace(const char *path, FwSizeType &totalBytes, FwSizeType &freeBytes)
get FS free and total space in bytes on filesystem containing path
Status handleFileError(File::Status fileStatus)
Status createDirectory(const char *path)
create a new directory at location path
Definition FileSystem.cpp:8
Status moveFile(const char *originPath, const char *destPath)
Status getFileSize(const char *path, FwSizeType &size)
append file origin to destination file. If boolean true, creates a brand new file if the destination ...
Status changeWorkingDirectory(const char *path)
move current directory to path
Status appendFile(const char *originPath, const char *destPath, bool createMissingDest)
copies a file from origin to destination
@ INVALID_PATH
Path is too long, too many sym links, doesn't exist, ect.
@ OTHER_ERROR
other OS-specific error
@ NO_SPACE
No space left.
Status copyFile(const char *originPath, const char *destPath)
moves a file from origin to destination
Status removeDirectory(const char *path)
remove a directory at location path
Status readDirectory(const char *path, const U32 maxNum, Fw::String fileArray[])
Status removeFile(const char *path)
removes a file at location path
Definition File.cpp:6