//************************************************************************
// author: yuzhengyang
// date: 2017.6.10 - 2017.6.15
// desc: 文件打包工具
// Copyright (c) yuzhengyang. All rights reserved.
//************************************************************************
using AzyleeCC.Core.DataUtils.CollectionUtils;
using AzyleeCC.Core.IOUtils.DirUtils;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace AzyleeCC.Core.IOUtils.FileUtils
{
///
/// 文件打包工具
///
public class FilePackageTool
{
const string FileType = "Y.Utils.FilePackage";//文件类型 禁止修改长度(19位)
const string FileVersion = "100001";//类型的版本 禁止修改长度(6位)
private static int FileBuffer = 1024 * 1024;
///
/// 文件打包
///
/// 要打包的路径
/// 打包后的文件
/// 回调进度
/// 覆盖打包后的文件(重复时)
///
/// -11;//要打包的路径不存在
/// -12;//打包后的目标文件已存在
/// -13;//要打包的路径中没有文件
/// -14;//输出文件夹不存在
/// -404;//未知错误,操作失败
///
public static int Pack(string srcPath, string dstFile, Action