#include "iotcon/iotcon_server_manager.h"
#include "iotcon/iotcon_client_manager.h"
+#include "common/filesystem/filesystem_provider.h"
+
namespace extension {
namespace iotcon {
CHECK_EXIST(args, kFilePath);
const auto& filePath = IotconUtils::GetArg(args, kFilePath);
+ //convert virtual root (if present in path) for native iotcon_initialize function
+ std::string realPath = common::FilesystemProvider::Create().GetRealPath( filePath.get<std::string>() );
- auto result = IotconUtils::ConvertIotconError(
- iotcon_initialize(filePath.get<std::string>().c_str()));
+ auto result = IotconUtils::ConvertIotconError( iotcon_initialize(realPath.c_str()) );
if (!result) {
LogAndReturnTizenError(result);
}