Skip to content

How to get Progress of Zipping and Unzipping the single file(not the folder) ? #116

Description

@AAChartModel

In your zt-zip command line progress bar demo,
I can see the method to get the progress of zipping a folder

     ZipUtil.pack(tmpDir, zipArchive, new NameMapper() {
            @Override
            public String map(String name) {
                progress.add(name);
                String progressStr = generateProgressStr(progress, 30);
                // the carriage return will return the cursor to the
                // start of the line
                System.out.print("|"+progressStr+"\r \n");
                return name;
            }
        });

It can show the progress zipping the folder properly.

However , in the to be unzipped file, we do not have the interface NameMapper just like the to be unzipped folder, what should I do to get the progress of unzipping file correctly?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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