added builder functions for full paths
This commit is contained in:
parent
64aadf5e1e
commit
d903da109e
@ -121,16 +121,25 @@ ReturnValue_t FileSystemHandler::initialize() {
|
|||||||
|
|
||||||
ReturnValue_t FileSystemHandler::appendToFile(const char *repositoryPath, const char *filename,
|
ReturnValue_t FileSystemHandler::appendToFile(const char *repositoryPath, const char *filename,
|
||||||
const uint8_t *data, size_t size, uint16_t packetNumber, void *args) {
|
const uint8_t *data, size_t size, uint16_t packetNumber, void *args) {
|
||||||
|
// A double slash between repo and filename should not be an issue, so add it in any case
|
||||||
|
std::string fullPath = currentMountPrefix + std::string(repositoryPath) + "/" +
|
||||||
|
std::string(filename);
|
||||||
return HasReturnvaluesIF::RETURN_OK;
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t FileSystemHandler::createFile(const char *repositoryPath, const char *filename,
|
ReturnValue_t FileSystemHandler::createFile(const char *repositoryPath, const char *filename,
|
||||||
const uint8_t *data, size_t size, void *args) {
|
const uint8_t *data, size_t size, void *args) {
|
||||||
|
// A double slash between repo and filename should not be an issue, so add it in any case
|
||||||
|
std::string fullPath = currentMountPrefix + std::string(repositoryPath) + "/" +
|
||||||
|
std::string(filename);
|
||||||
return HasReturnvaluesIF::RETURN_OK;
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t FileSystemHandler::deleteFile(const char *repositoryPath, const char *filename,
|
ReturnValue_t FileSystemHandler::deleteFile(const char *repositoryPath, const char *filename,
|
||||||
void *args) {
|
void *args) {
|
||||||
|
// A double slash between repo and filename should not be an issue, so add it in any case
|
||||||
|
std::string fullPath = currentMountPrefix + std::string(repositoryPath) + "/" +
|
||||||
|
std::string(filename);
|
||||||
return HasReturnvaluesIF::RETURN_OK;
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user