Robin Mueller
90c1d45f20
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
12 lines
354 B
C++
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;
|
|
}
|