[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] File Size



Chris Nandor writes Tue, 13 Jan 1998 09:20:44 -0500

>Does anyone remember how to get the total file size?  -s just returns the
>data fork size.

    use Mac::Files;
    my $cat = FSpGetCatInfo($file);
    $len = $cat->ioFlLgLen + $cat->ioFlRLgLen;

-- is one way of doing it I think.

Alan Fry



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch