this overwrites after numFiles, right, so we are relying on renameTo supporting overwrite (does it?)