eive-obsw/bsp_q7s/fs/helpers.cpp
Robin Mueller 90c1d45f20
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
correction for prefix handling on Q7S
2023-02-22 18:06:34 +01:00

12 lines
354 B
C++

#include "helpers.h"
std::filesystem::path fshelpers::getPrefixedPath(SdCardManager &man,
std::filesystem::path pathWihtoutPrefix) {
auto prefix = man.getCurrentMountPrefix();
if (prefix == nullptr) {
return pathWihtoutPrefix;
}
auto resPath = prefix / pathWihtoutPrefix;
return resPath;
}