Move contexts to a directory.