public static void copyFileToDir(File sourceFile, File dest) throws HyscaleException {
		if (sourceFile == null || !sourceFile.exists()) {
			String[] args = new String[] { sourceFile != null ? sourceFile.getName() : NULL_STRING };
			throw new HyscaleException(CommonErrorCode.FILE_NOT_FOUND, args);
		}
		if (dest == null) {
			throw new HyscaleException(CommonErrorCode.DIRECTORY_REQUIRED_TO_COPY_FILE, sourceFile.getName());
		}
		// create dir if not exist
		dest.mkdirs();
		try {
			FileUtils.copyFileToDirectory(sourceFile, dest);
		} catch (IOException e) {
			throw  new HyscaleException(e, CommonErrorCode.FAILED_TO_COPY_FILE, sourceFile.getName());
		}
	}
Copy file to given directory Makes directory if not exist

@param sourceFile
@param dest
@throws HyscaleException
commons/src/main/java/io/hyscale/commons/io/HyscaleFilesUtil.java