`file.getCanonicalFile` is more direct even. The re-creating of a `File` in the original version of the method was redundant. just `file` as an argument would work and still works.