![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/FPrimeBasicTypes.hpp>#include <Fw/Types/StringBase.hpp>#include <config/FppConstantsAc.hpp>Go to the source code of this file.
Namespaces | |
| Os | |
| Os::FilePathUtils | |
| Utility for canonicalizing file paths and checking directory containment. | |
Enumerations | |
| enum | Os::FilePathUtils::Status { Os::FilePathUtils::VALID, Os::FilePathUtils::OUTSIDE_SANDBOX, Os::FilePathUtils::INVALID_PATH, Os::FilePathUtils::TOO_LONG } |
Functions | |
| Status | Os::FilePathUtils::resolvePath (const char *path, const char *baseDir, char *resolvedOut, FwSizeType resolvedSize) |
Resolve a path by collapsing . and .. segments. More... | |
| Status | Os::FilePathUtils::resolvePath (const Fw::ConstStringBase &path, const Fw::ConstStringBase &baseDir, Fw::StringBase &resolvedOut) |
| Resolve a path (Fw::StringBase overload) More... | |
| Status | Os::FilePathUtils::resolveFromCwd (const char *path, char *resolvedOut, FwSizeType resolvedSize) |
| Resolve a path using CWD as the base for relative paths. More... | |
| Status | Os::FilePathUtils::checkContainment (const char *resolvedPath, const char *allowedDirectory) |
| Check whether an already-resolved path is within an allowed directory. More... | |
Variables | |
| static constexpr FwSizeType | Os::FilePathUtils::MAX_PATH_LENGTH = FileNameStringSize |
| Maximum supported path length for resolution buffers. More... | |