SevenZipSharp - 将文件附加到zip并删除文件路径

我正在使用SevenZipSharp将文件压缩为zip文件。 我有两个问题: 在同一目标文件上使用CompressFiles多次,它不会附加文件,但会覆盖它们。 我希望文件添加完整的路径,但似乎无法找到(我认为PreserveDirectoryRoot = false会做到这一点,但事实并非如此)。 有没有人有想法?     
已邀请:
第一次通话后你需要使用
CompressionMode.Append
。默认值为
CompressionMode.Create
。可以通过改变
DirectoryStructure
来删除路径。 相关的源代码在这里。
    public sealed partial class SevenZipCompressor
#if UNMANAGED
        : SevenZipBase
#endif
    {
        /// Gets or sets the compression mode.
        /// </summary>
        public CompressionMode CompressionMode { get; set; }
        /// <summary>

        /// Gets or sets the value indicating whether to preserve the 
        ///   directory structure.
        /// </summary>
        public bool DirectoryStructure { get; set; }
    }
    

要回复问题请先登录注册