Maybe the reuse of the variables `name1` and `name2` wasn't the best idea. But the idea is that on windows I wasn't name to be the name key of the result of `FileUtils.getFilenameAndExtension` and on mac, the original `file.name`.

I can change it to an if, but I still need to assign the names in both branches.