def __process_directory_entry(self, path): """ Create the directory (and any parent directories) if it does not already exist. :param path: the full path to the directory :return: True, if the directory was created, False otherwise """ _method_name = '__process_directory_entry' self.logger.entering(str(path), class_name=self._class_name, method_name=_method_name) result = False if not os.path.isdir(path): # No real need to extract directory, just make the directories os.makedirs(path) result = True return result
def setUp(self): self.name = 'TranslatorTestCase' if not os.path.exists(self._execution_dir): os.makedirs(self._execution_dir)