somewhere

This commit is contained in:
Dhanya Maliakal
2017-03-10 10:51:28 +01:00
parent 1e94ec0c6a
commit 300b014f73
4 changed files with 6 additions and 7 deletions

View File

@ -269,16 +269,14 @@ void UDPBaseImplementation::setFileName(const char c[]){
void UDPBaseImplementation::setFilePath(const char c[]){
FILE_LOG(logDEBUG) << __AT__ << " starting";
if(strlen(c)){
//check if filepath exists
struct stat st;
if(stat(c,&st) == 0)
strcpy(filePath,c);
else{
strcpy(filePath,"");
else
FILE_LOG(logWARNING) << "FilePath does not exist: " << filePath;
}
strcpy(filePath, c);
}
FILE_LOG(logDEBUG) << "Info: File path: " << filePath;
}