Another spot where path is expecting a file, but it's possible now to use a dictionary.