











problem solved.it was simple.
no more traversing a directory to see if files are still growing.
---
chop(my $rc = `du -s $dir`);
my ($size1, $trash1) = split /\t/, $rc, 2;
sleep(1);
chop($rc = `du -s $dir`);
my ($size2, $trash2) = split /\t/, $rc, 2;
return 0 if $size1 != $size2;
return 1;
---
eesh. du. whodathunkit?

Submitted by
ryan
at 6/13/2006 3:16:20 PM
Submitted by
Chris
at 6/13/2006 5:13:05 PM
Depending on file-count/levels-of-recursion in the directory, "du" can be extremely resource-intensive and eat lots of i/o. Also, "du"'s output will not vary if directories or zero-length files are being created. YMMV.