home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!pageworks.com!world!eff!news.byu.edu!gatech!destroyer!lambda.msfc.nasa.gov!shuttle.msfc.nasa.gov!user
- From: suddejw@shuttle.msfc.nasa.gov (John Sudderth)
- Subject: How to create path on the fly
- Message-ID: <suddejw-131192113532@shuttle.msfc.nasa.gov>
- Followup-To: comp.sys.mac.programmer
- Sender: news@lambda.msfc.nasa.gov (Newsmaster)
- Nntp-Posting-Host: shuttle.msfc.nasa.gov
- Organization: Boeing
- Date: Fri, 13 Nov 1992 17:41:04 GMT
- Lines: 14
-
- In a copy function I call "Create" passing a valid pathname in destination.
-
- if (Create((StringPtr)destination, curVolume, creator, type) != noErr) {
- DisplayError ("Error: Can't create destination file.");
- FSClose(orgRef);
- return 1;
-
- Let's say destination contains:"HD80:Utilities:My Program". How can I
- create the folder Utilities if it doesn't already exist so that create
- doesn't fail?
-
- Thanks in advance...
-
- John
-