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

Re: [MacPerl] This far...



"Thomas R. Kimpton" <tkimpton@maned.com> writes:
[snip]
}
}A problem, that I don't know the solution to, is that this
}total only reflects the data fork sizes... I don't know how
}to access the size of the resource fork.  I looked through
}the macperl pod docs, couldn't find anything.

It's not that hard, but you have to use the Mac Toolbox interface to do it:

        use Mac::Files;
        $has = FSpGetCatInfo($file);
        $rsize = $has->{ioFlRLgLen};

$file contains the path to the file.

}
}Tom.
}
}Tom Kimpton
}--
}Mrs. Bun: Have you got anything without spam?
}Waitress: Well, there's spam egg sausage and spam, that's not got
}much spam in it.
}Mrs. Bun: I don't want any spam!
}

---
Paul J. Schinder
NASA Goddard Space Flight Center
Code 693, Greenbelt, MD 20771
schinder@pjstoaster.pg.md.us



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