summaryrefslogtreecommitdiff
path: root/orkaudio/Reporting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'orkaudio/Reporting.cpp')
-rw-r--r--orkaudio/Reporting.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/orkaudio/Reporting.cpp b/orkaudio/Reporting.cpp
index 308b58c..13d9c95 100644
--- a/orkaudio/Reporting.cpp
+++ b/orkaudio/Reporting.cpp
@@ -81,9 +81,21 @@ void Reporting::ThreadHandler(void *args)
success = true;
if(tr.m_deleteTape)
{
- LOG4CXX_INFO(LOG.reportingLog, "Registered tape for removal: " + audioTapeRef->GetIdentifier());
+ //LOG4CXX_INFO(LOG.reportingLog, "Registered tape for removal: " + audioTapeRef->GetIdentifier());
+ //BatchProcessing::GetInstance()->TapeDropRegistration(tapeFilename);
+
CStdString tapeFilename = audioTapeRef->GetFilename();
- BatchProcessing::GetInstance()->TapeDropRegistration(tapeFilename);
+
+ CStdString absoluteFilename = CONFIG.m_audioOutputPath + "/" + tapeFilename;
+ if (ACE_OS::unlink((PCSTR)absoluteFilename) == 0)
+ {
+ LOG4CXX_INFO(LOG.reportingLog, "Deleted tape: " + tapeFilename);
+ }
+ else
+ {
+ LOG4CXX_DEBUG(LOG.reportingLog, "Could not delete tape: " + tapeFilename);
+ }
+
}
}
else