5 #ifndef Os_FilePathUtils_hpp_ 6 #define Os_FilePathUtils_hpp_ 20 namespace FilePathUtils {
Resolved path falls outside the allowed directory.
PlatformSizeType FwSizeType
Path is malformed or cannot be resolved.
Status checkContainment(const char *resolvedPath, const char *allowedDirectory)
Check whether an already-resolved path is within an allowed directory.
static constexpr FwSizeType MAX_PATH_LENGTH
Maximum supported path length for resolution buffers.
Path is valid and within the allowed directory.
Status resolveFromCwd(const char *path, char *resolvedOut, FwSizeType resolvedSize)
Resolve a path using CWD as the base for relative paths.
A read-only abstract superclass for StringBase.
Declares F Prime string base class.
Status resolvePath(const char *path, const char *baseDir, char *resolvedOut, FwSizeType resolvedSize)
Resolve a path by collapsing . and .. segments.
Combined path length exceeds the output buffer size.