From: schutz Date: Wed, 7 Nov 2007 15:15:18 +0000 (+0000) Subject: create the RUN directory, where QA result is stored if it does not exist X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=1c0190ec17188b38aa091e1eab3f27c3c7eded86;p=u%2Fmrichter%2FAliRoot.git create the RUN directory, where QA result is stored if it does not exist --- diff --git a/STEER/AliQA.cxx b/STEER/AliQA.cxx index 95872dc5e60..6e879adb418 100644 --- a/STEER/AliQA.cxx +++ b/STEER/AliQA.cxx @@ -319,15 +319,18 @@ TFile * AliQA::GetQAResultFile() // opens the file to store the Quality Assurance Data Checker results if (!fgQAResultFile) { - TString fileName(fgQAResultDirName + fgQAResultFileName) ; - if ( fileName.Contains("local://")) - fileName.ReplaceAll("local://", "") ; + TString dirName(fgQAResultDirName) ; + if ( dirName.Contains("local://")) + dirName.ReplaceAll("local://", "") ; + TString fileName(dirName + fgQAResultFileName) ; TString opt("") ; if ( !gSystem->AccessPathName(fileName) ) opt = "UPDATE" ; else + if ( gSystem->AccessPathName(dirName) ) + gSystem->mkdir(dirName) ; opt = "NEW" ; - + fgQAResultFile = TFile::Open(fileName, opt) ; }