receiver create path (#35)

This commit is contained in:
Erik Fröjdh
2019-06-25 11:14:05 +02:00
committed by Dhanya Thattil
parent 136e00d15e
commit d3101baacb
4 changed files with 31 additions and 9 deletions

View File

@@ -808,6 +808,8 @@ int slsReceiverTCPIPInterface::set_file_dir(Interface &socket) {
if (strlen(fPath) != 0) {
FILE_LOG(logDEBUG1) << "Setting file path: " << fPath;
if(fPath[0] != '/')
throw RuntimeError("Receiver path needs to be absolute path");
impl()->setFilePath(fPath);
}
std::string s = impl()->getFilePath();