Progress bars when packing directories

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Juergen
Power Member
Power Member
Posts: 517
Joined: 2003-05-02, 18:19 UTC
Location: Berlin (Germany)
Contact:

Progress bars when packing directories

Post by *Juergen »

Hi all,

when I have selected several directories in one panel, and then in the "Pack files" dialog window, I select
[v] Create separate archieves, one per selected file/dir
and use the built-in ZIP packer, a little window with 2 progress bars is shown while packing takes place. Both progress bars are frequently updated. OK.

But when I use my own packer plugin instead of the built-in ZIP packer, only the upper progress bar is frequently updated, the lower bar remains white and shows 0% during the whole process.

Of course the plugin calls the function defined by SetProcessDataProc() periodically, and passes the amount of copied bytes to it. What am I doing wrong?

Regards,
Juergen
My add-ons and plugins for TC: NiftyLink, mbox, Sequences
Juergen
Power Member
Power Member
Posts: 517
Joined: 2003-05-02, 18:19 UTC
Location: Berlin (Germany)
Contact:

Post by *Juergen »

Now I realized that the same thing happens with the Diskdir v1.1 plugin, written by Ch. Ghisler.
So it seems to be a glitch of the packer plugin interface (tested with TC 6.53).

Regards, Juergen
My add-ons and plugins for TC: NiftyLink, mbox, Sequences
shocquer
Junior Member
Junior Member
Posts: 16
Joined: 2004-03-19, 12:07 UTC

Post by *shocquer »

I couldn't reproduce your problem using bzip2 plugin, also from mr. ghisler. as i couldn't found source of it, i can't help :-(
But if you're missing something in api, it's common problem ;-)
Juergen
Power Member
Power Member
Posts: 517
Joined: 2003-05-02, 18:19 UTC
Location: Berlin (Germany)
Contact:

Post by *Juergen »

2shocquer:

Hello, thanks for your reply.
I couldn't reproduce your problem using bzip2 plugin, also from mr. ghisler.
According to the description of bzip2 only one file per archive is possible. As I wrote, the problem appeares when multiple directories are packed. When I try to do so with bzip2, I get the error message "Too many files!".

So since the bzip2 plugin doesn't support the concerning functions, of course there can't be any problems with these functions. :)

Regards, Juergen
My add-ons and plugins for TC: NiftyLink, mbox, Sequences
shocquer
Junior Member
Junior Member
Posts: 16
Joined: 2004-03-19, 12:07 UTC

Post by *shocquer »

sorry to mess you up, i mean using tar.bz2 :-) that is possible using internal tar and externat bzip2 -> so the problem doesn't affect this, as tar seems to be an internal function.
Post Reply