bigal_george has asked for the wisdom of the Perl Monks concerning the following question:
Hi Ive got a file delete routine which in a loop as each singular file or directory is removed I do this: print STDERR "."; which gives a continuous row of dots progressing across the screen as each file or directory is deleted.
using below:
use File::Copy::Recursive qw(fcopy rcopy dircopy fmove rmove dirmove);
dircopy($a,$b);
I have no idea how to write a callback to the dircopy() function, or if its possible. But there are thousands of files, and once the perl script is called seeing a blinking cursor is very non-intuitive and I'd appreciate if anyone could advise how I can simply show the dots progress as per the delete routine.
Regards, Al.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Super simple progress
by marto (Cardinal) on Dec 30, 2019 at 09:06 UTC | |
Re: Super simple progress (Twirling baton alternative)
by jcb (Parson) on Dec 31, 2019 at 00:53 UTC | |
by Anonymous Monk on Dec 31, 2019 at 03:10 UTC | |
by jcb (Parson) on Dec 31, 2019 at 03:58 UTC | |
by Anonymous Monk on Dec 31, 2019 at 04:26 UTC | |
Re: Super simple progress
by davido (Cardinal) on Dec 30, 2019 at 16:45 UTC | |
by bigal_george (Acolyte) on Dec 30, 2019 at 16:49 UTC | |
by davido (Cardinal) on Dec 30, 2019 at 17:21 UTC | |
by bigal_george (Acolyte) on Dec 30, 2019 at 17:49 UTC | |
by davido (Cardinal) on Dec 30, 2019 at 18:45 UTC | |
by bigal_george (Acolyte) on Dec 30, 2019 at 20:09 UTC | |
by bigal_george (Acolyte) on Dec 30, 2019 at 22:04 UTC | |
by davido (Cardinal) on Dec 31, 2019 at 06:28 UTC | |
Re: Super simple progress
by bigal_george (Acolyte) on Dec 30, 2019 at 08:23 UTC |
Back to
Seekers of Perl Wisdom