Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Reading progress of "copy" executed asynchronously

by Corion (Patriarch)
on Aug 08, 2018 at 10:43 UTC ( [id://1220074]=note: print w/replies, xml ) Need Help??


in reply to Reading progress of "copy" executed asynchronously

A funny way to cheat would be to simply generate the progress in your program by checking the size of the target file and comparing that to the size of the source file. This avoids needing to read the (console) output of the copy process, but you don't necessarily get any indication of errors that way.

  • Comment on Re: Reading progress of "copy" executed asynchronously

Replies are listed 'Best First'.
Re^2: Reading progress of "copy" executed asynchronously
by SuicideJunkie (Vicar) on Aug 08, 2018 at 14:37 UTC

    Windows shows all the disk space as used immediately, and doesn't even update the file timestamps during the copy process. It does update the modification time to be equal to the source file's modification time after the copy completes, but that's not useful. The free space on disk is also set to the final value immediately.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1220074]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found