Note

Only missing directories are created.

In other words, the same directory can be specified multiple times safely without, for example, being recreated repeatedly. Sometimes, for pipelines with multiple entry points, this is the only way to make sure that certain working or output directories are always created or available before the pipeline runs.

# follows¶

Purpose:

Indicates either

• that the task requires a directory to be created first if necessary. (Existing directories will not be overwritten)

Example:

def task1():



Parameters:

a list of tasks which have to be run before this function

Directories which need to be created (only if they don’t exist) before the task is run can be specified via a mkdir indicator object:
@follows(task_x, mkdir("/output/directory") ...)