home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!amdahl!jsp
- From: jsp@uts.amdahl.com (James Preston)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: vrefNum from Path Name
- Message-ID: <25rU03zf79dw00@amdahl.uts.amdahl.com>
- Date: 5 Sep 92 00:05:53 GMT
- References: <47022@shamash.cdc.com> <Btwwt5.7Bv@taligent.com> <14960@borg.cs.unc.edu> <47148@shamash.cdc.com>
- Reply-To: jsp@pls.amdahl.com
- Distribution: usa
- Organization: Amdahl Corporation, Sunnyvale CA
- Lines: 23
-
- paul@svl.cdc.com (Paul Kohlmiller) writes:
-
- }lari@strauss.cs.unc.edu (Humayun Lari) writes:
-
- }>In article <Btwwt5.7Bv@taligent.com> keith@taligent.com (Keith Rollin) writes:
- } [says to always use FSMakeFSSpec and not create a FSSpec on your own.]
- }>What about when the file/directory you're referring to does not exist?
- }>If I remember correctly, FSMakeFSSpec checks to make sure that it does, so
- }>it would return an error code when you're trying to create an FSSpec prior to
- }>performing a Save As... Or am I wrong about this? Keith?
-
- }My reading of IM6 seems to say that you will get an error but the
- }FSSpec is still good. Haven't tried it.
- }Other Opinions welcome.
-
- I can vouch for this. FSMakeFSSpec returns the file not found error, but
- goes ahead and makes a valid FSSpec for the missing file (i.e. the vRefNum
- and dirID fields reference the correct folder, and the name field contains
- the name of the non-existant file). A very handy feature. But do remember
- that FSSpecs are only found on System 7.
-
- --James Preston
-
-