|
@@ -686,8 +686,12 @@ if(fgetc(fp)==EOF)
|
|
|
//DEBUG_INFO("It is end of file");
|
|
|
fclose(fp);
|
|
|
memset(rmFileCmd, 0, sizeof rmFileCmd);
|
|
|
- sprintf(rmFileCmd,"rm -f %s","../Storage/OCPP/TransactionRelatedQueue");
|
|
|
- system(rmFileCmd);
|
|
|
+ if((access("../Storage/OCPP/TransactionRelatedQueue",F_OK))!=-1)
|
|
|
+ {
|
|
|
+ sprintf(rmFileCmd,"rm -f %s","../Storage/OCPP/TransactionRelatedQueue");
|
|
|
+ system(rmFileCmd);
|
|
|
+ }
|
|
|
+
|
|
|
result = FALSE;
|
|
|
|
|
|
return result;
|