Should be {{dir: string, file: string}}