cloudcmd icon indicating copy to clipboard operation
cloudcmd copied to clipboard

idea for enhancment - file copy speed/bytes copied info

Open hagaygo opened this issue 1 year ago • 1 comments

A little thing i sometime miss is while copying big files, There is a simple progress bar, but no info about copy speed or how much bytes already copied.

Since the progress bar seems to give correct info , I assume it should be easy to add byte copied out of total bytes needs to be copied to the GUI under the progress bar.

And if this information is available it should be easy to add speed to the GUI (byte copied / (current time - start of copy time) ).

I did a quick check in the code and did not really find how the progress bar is being calculated/show.

Only found the following code is being invoked on copy command

copyFn = ({from, to, names}, callback) =>

With some pointers (not much of node/npm expert) i assume i can implement it myself (of course , someone else can pick it up 😄)

hagaygo avatar Nov 08 '24 09:11 hagaygo

Yes, it is good idea, here is two places:

  • https://github.com/coderaiser/cloudcmd/blob/master/client/modules/operation/set-listeners.js
  • https://github.com/cloudcmd/node-fileop

coderaiser avatar Nov 08 '24 16:11 coderaiser