Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking of archiving progress #147

Closed
acierto opened this issue Jul 14, 2015 · 6 comments
Closed

Tracking of archiving progress #147

acierto opened this issue Jul 14, 2015 · 6 comments

Comments

@acierto
Copy link

acierto commented Jul 14, 2015

Is it any way how it is possible to track the progress of archiving?
Looking at documentation and skimming the code I can't find out how to do it.

In case of really missing this feature would be nice to have it, otherwise having quite large volumes to archive you are not aware what is going on

@soyuka
Copy link
Contributor

soyuka commented Jul 14, 2015

@ctalkington
Copy link
Member

pointer() and the entry event can help with logging. making a progress bar or such would be much harder since streams are variable. if you know the file count you could do the math on each entry event to get percent of files complete etc.

https://github.com/archiverjs/node-archiver#entry

@acierto
Copy link
Author

acierto commented Jul 15, 2015

Oh cool! I missed this part in the docs.. Thanks guys!

@anthlasserre
Copy link

You can do like this if you want:

archive.on("progress", (progress) => {
    console.log("TOTAL", progress.entries.total, "PROCESSED", progress.entries.processed)
})

@ArkinSolomon
Copy link

This no longer works, processed and total are the same, on MacOS anyway

TOTAL 2808 PROCESSED 2808

@ArkinSolomon
Copy link

Looks like this is mentioned in #475

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants