Pass config to generate method of file manager