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

Re: [MacPerl] Determining free disk space



At 8:09 AM -0400 10/11/99, schinder@pobox.com wrote:
>On Mon, Oct 11, 1999 at 10:34:29AM +0200, Ian wrote:
>} However, I can't find a way of finding out how much free space there is on a
>} mounted (or local) volume. There are a couple of Unix modules for this, but
>} evidently not for the Mac. Any clues?
>
>You could use File::Find to laboriously walk the tree and total up the
>size of every file it found.  But if I were you, I'd be hunting
>through "Inside Macintosh" and the Mac Toolbox pods with Shuck to find
>the call it uses to give you the total disk usage when you "command-I"
>a disk.  That seems to be instantaneous, even on a netatalk mounted
>disk on the Linux machine.  Then, if MacPerl gives you access to that
>routine, the problem is solved.

It's 
<http://developer.apple.com/techpubs/mac/Files/Files-96.html#HEADING96 
-0>, and I don't think that MacPerl gives you access to the necessary 
routine (PBHGetVInfo).

-Eric

--
Eric Albert                     ejalbert@cs.stanford.edu
http://www.stanford.edu/~ejalbert/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org