Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!uhccux!mikem
From: mikem@uhccux.uhcc.hawaii.edu (Mike Morton)
Newsgroups: comp.sys.mac.programmer
Subject: finding amount of free disk space?
Keywords: disk space GetVInfo drvNum vRefNum
Message-ID: <4995@uhccux.uhcc.hawaii.edu>
Date: 2 Oct 89 21:26:43 GMT
Organization: University of Hawaii
Lines: 16


I've got a document open which a user specified with SFGetFile, so all I
have to identify it is a vRefNum and a name.  I'd like to find out how
much free space there is on the drive on which the document is stored
(i.e., how much more can I expand the document?).

It looks like I want to use GetVInfo, which takes a drvNum as a parameter.
If so, how do I map a vRefNum to the drvNum containing it?  If not, what's
the right way?

I bet this is a really easy one, so please email to me and I'll summarize
to the net.  Thanks in advance.

 -- Mike Morton // P.O. Box 11378, Honolulu, HI  96828, (808) 676-6966 HST
      Internet: mikem@uhccux.uhcc.hawaii.edu
    (anagrams): Mr. Machine Tool; Ethical Mormon; Chosen Immortal; etc.