parameters: (self)
docstring: Create output directories for workflow.
docstring_summary: Create output directories for workflow.
docstring_tokens: Create output directories for workflow .
function: def create_output_directories(self):
      """Create output directories for workflow."""
      checked = set()
      for task in self.tasks:
        for output in task.outputs:
          directory = os.path.dirname(output.resource.name)
          if directory in checked: continue
          if not os.path.exists(directory): os.makedirs(directory)
          checked.add(directory)
function_tokens: def create_output_directories ( self ) : checked = set ( ) for task in self . tasks : for output in task . outputs : directory = os . path . dirname ( output . resource . name ) if directory in checked : continue if not os . path . exists ( directory ) : os . makedirs ( directory ) checked . add ( directory )