From 24cdce6e897870af929349ab7199d987713ee95c Mon Sep 17 00:00:00 2001 From: Gerald Begumisa Date: Thu, 6 Sep 2007 16:49:44 +0000 Subject: Added new Tape Processor Tape File Naming git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@483 09dcff7a-b715-0410-9601-b79a96267cd0 --- orkbasecxx/AudioTape.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'orkbasecxx/AudioTape.cpp') diff --git a/orkbasecxx/AudioTape.cpp b/orkbasecxx/AudioTape.cpp index c29f501..baebd36 100644 --- a/orkbasecxx/AudioTape.cpp +++ b/orkbasecxx/AudioTape.cpp @@ -201,7 +201,11 @@ void AudioTape::Write() if(m_audioFileRef.get()) { m_audioFileRef->Close(); - GenerateFinalFilePathAndIdentifier(); + /* + * This function is now called in the TapeFileNaming + * tape processor. + */ + //GenerateFinalFilePathAndIdentifier(); m_readyForBatchProcessing = true; } } @@ -532,7 +536,12 @@ void AudioTape::GenerateFinalFilePath() if(pathIdentifier.size() > 0) { - m_filePath = pathIdentifier; + m_filePath = pathIdentifier; + + CStdString mkdirPath; + + mkdirPath.Format("%s/%s", CONFIG.m_audioOutputPath, m_filePath); + FileRecursiveMkdir(mkdirPath, CONFIG.m_audioFilePermissions, CONFIG.m_audioFileOwner, CONFIG.m_audioFileGroup, CONFIG.m_audioOutputPath); } } } -- cgit v1.2.3