Skip to content

how to retain empty directory just for make the tree complete #798

@liugt34

Description

@liugt34

Steps to reproduce

  1. have 3 directories, and one directory has no file
  2. zip the root directory
  3. the empty directory missing

            var zipName = Path.ChangeExtension(versionPath, ".zip");
            FastZip fastZip = new FastZip();
            fastZip.UseUnicode = true;
            fastZip.StringCodec.CodePage = Encoding.GetEncoding("GB2312").CodePage;
            string filter = null;
            fastZip.CreateZip(zipName, versionPath, true, filter, filter);

image
image

Expected behavior

retain the directory even if the directory is empty

Actual behavior

the directory has missing

Version of SharpZipLib

1.4.0

Obtained from (only keep the relevant lines)

  • Package installed using NuGet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions