public void copyDir(File src, File dest) {
        if (src.isDirectory())
            for (String file : src.list())
                copyDir(new File(src, file), new File(dest, file));
        else
            ioUtils.copy(src, dest);
    }