schema.NewDirectory was being called with the wrong set of
parameters. This meant that new directories were not being created.