What ever happened to portability of code. Not to slag Mac::Glue but even
the name suggests that your going to spend decades re-writing code should
you need to move to a different platform.
I can see it's purpose from some of the other threads here when working with
iTunes or something but in this case, use the standard perl/system
functions.
As someone else pointed out:
$size = `du -sk $dir`;
Would do the trick nicely.
On 3/16/04 7:03 AM, "Jeff Lowrey" <[EMAIL PROTECTED]> wrote:
> At 01:48 AM 3/16/2004, Rick Measham wrote:
>> I'm trying to get the size of a folder and figure Mac::Glue would be the
>> way to go. However I'm getting back a 0:
>>
>> my $size = $finder->data_size("$monthdir/$folder/");
>> print $size;
>
> From my own mistakes with Mac::Glue, I'm guessing you need to add a
> ->get() somewhere in there.
> Like
> my $size = $finder->data_size("$monthdir/$folder/")->get();
>
> -Jeff
>
>