28 const char *
const compName
30 FileManagerComponentBase(compName),
43 FileManagerComponentBase::init(queueDepth, instance);
57 CreateDirectory_cmdHandler(
64 this->log_ACTIVITY_HI_CreateDirectoryStarted(logStringDirName);
68 this->log_WARNING_HI_DirectoryCreateError(
73 this->log_ACTIVITY_HI_CreateDirectorySucceeded(logStringDirName);
75 this->emitTelemetry(status);
76 this->sendCommandResponse(opCode, cmdSeq, status);
80 RemoveFile_cmdHandler(
87 this->log_ACTIVITY_HI_RemoveFileStarted(logStringFileName);
91 this->log_WARNING_HI_FileRemoveError(
96 this->log_ACTIVITY_HI_RemoveFileSucceeded(logStringFileName);
98 this->emitTelemetry(status);
99 this->sendCommandResponse(opCode, cmdSeq, status);
112 this->log_ACTIVITY_HI_MoveFileStarted(logStringSource, logStringDest);
119 this->log_WARNING_HI_FileMoveError(
120 logStringSource, logStringDest, status
123 this->log_ACTIVITY_HI_MoveFileSucceeded(logStringSource, logStringDest);
125 this->emitTelemetry(status);
126 this->sendCommandResponse(opCode, cmdSeq, status);
130 RemoveDirectory_cmdHandler(
137 this->log_ACTIVITY_HI_RemoveDirectoryStarted(logStringDirName);
141 this->log_WARNING_HI_DirectoryRemoveError(
146 this->log_ACTIVITY_HI_RemoveDirectorySucceeded(logStringDirName);
148 this->emitTelemetry(status);
149 this->sendCommandResponse(opCode, cmdSeq, status);
153 ShellCommand_cmdHandler(
161 this->log_ACTIVITY_HI_ShellCommandStarted(
165 this->systemCall(command, logFileName);
167 this->log_ACTIVITY_HI_ShellCommandSucceeded(
171 this->log_WARNING_HI_ShellCommandFailed(
172 logStringCommand, status
178 this->sendCommandResponse(
186 AppendFile_cmdHandler(
195 this->log_ACTIVITY_HI_AppendFileStarted(logStringSource, logStringTarget);
200 this->log_WARNING_HI_AppendFileFailed(
206 this->log_ACTIVITY_HI_AppendFileSucceeded(
212 this->emitTelemetry(status);
213 this->sendCommandResponse(opCode, cmdSeq, status);
223 this->pingOut_out(0,key);
235 const char evalStr[] =
"eval '%s' 1>>%s 2>&1\n";
237 char buffer[bufferSize];
240 buffer,
sizeof(buffer), evalStr,
246 const int status = system(buffer);
254 ++this->commandCount;
255 this->tlmWrite_CommandsExecuted(this->commandCount);
259 this->tlmWrite_Errors(this->errorCount);
270 this->cmdResponse_out(
274 Fw::COMMAND_OK : Fw::COMMAND_EXECUTION_ERROR