@@ -0,0 +1,1095 @@
+package io.github.Cnly.GitHup;%0A%0Aimport java.io.BufferedInputStream;%0Aimport java.io.BufferedOutputStream;%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.FileOutputStream;%0Aimport java.io.IOException;%0A%0Apublic class FileUtils%0A%7B%0A    %0A    /**%0A     * Copies the file %3Ccode%3Esource%3C/code%3E to %3Ccode%3Edest%3C/code%3E.%3C/br%3E%0A     * The destination file WILL be overwritten if it's already existed.%0A     * @param source source file%0A     * @param dest destination file%0A     * @throws IOException %0A     */%0A    public static void copyFile(File source, File dest) throws IOException%0A    %7B%0A        %0A        if(!dest.exists()) dest.createNewFile();%0A        %0A        byte%5B%5D buffer = new byte%5B1024%5D;%0A        int bytesRead = 0;%0A        %0A        try(BufferedInputStream bin = new BufferedInputStream(new FileInputStream(source));%0A                BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(dest));)%0A        %7B%0A            while((bytesRead = bin.read(buffer)) != -1)%0A            %7B%0A                bos.write(buffer, 0, bytesRead);%0A            %7D%0A        %7D%0A        %0A    %7D%0A    %0A%7D%0A

Add a helper to copy a file