]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
create the RUN directory, where QA result is stored if it does not exist
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Nov 2007 15:15:18 +0000 (15:15 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Nov 2007 15:15:18 +0000 (15:15 +0000)
STEER/AliQA.cxx

index 95872dc5e6048951954d4f735d03642f531c2f5a..6e879adb418c6773e9549855752e3656e2df8bd5 100644 (file)
@@ -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) ;   
        }