def _testOutputFile(self, index): ''' Test if the output file exist ''' #Output file is the outputDir + replaced template file name path = (self.outputDir + "/" + self._readAndReplace(self.outputFile, self._buildSearchMap(index, None))).strip("\n") if FSSelector.exists(path): return False return True
def _checkOutputDir(self): ''' Check if the outputDir exists. If not, create it ''' if not FSSelector.exists(self.outputDir, True): FSSelector.mkDir(self.outputDir)