r4277 getFile(): simplify