home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18372 < prev    next >
Encoding:
Text File  |  1992-11-13  |  928 b   |  27 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!pageworks.com!world!eff!news.byu.edu!gatech!destroyer!lambda.msfc.nasa.gov!shuttle.msfc.nasa.gov!user
  3. From: suddejw@shuttle.msfc.nasa.gov (John Sudderth)
  4. Subject: How to create path on the fly
  5. Message-ID: <suddejw-131192113532@shuttle.msfc.nasa.gov>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: news@lambda.msfc.nasa.gov (Newsmaster)
  8. Nntp-Posting-Host: shuttle.msfc.nasa.gov
  9. Organization: Boeing
  10. Date: Fri, 13 Nov 1992 17:41:04 GMT
  11. Lines: 14
  12.  
  13. In a copy function I call "Create" passing a valid pathname in destination.
  14.  
  15. if (Create((StringPtr)destination, curVolume, creator, type) != noErr) {
  16.                 DisplayError ("Error: Can't create destination file.");
  17.                 FSClose(orgRef);
  18.                 return 1; 
  19.  
  20. Let's say destination contains:"HD80:Utilities:My Program". How can I
  21. create the folder Utilities if it doesn't already exist so that create
  22. doesn't fail?
  23.  
  24. Thanks in advance...
  25.  
  26. John
  27.