Initial commit handles directory pub task.