Maybe add a check to File.copyTo(target: File, overwrite=true, …) weather or not “this” and “target” are in fact the same file, so the file does not get deleted and is then gone when trying to copy it. We need more stupidity protection, at least I do 🙈