files/file: refactor method parameters