[comp.sys.mac.programmer] File Manager: full path names and listing files.

ollef@sics.se (Olle Furberg) (03/30/91)

  One thing I don't understand with the File Manager is how I could get a
list of all files in a specific directory. Suppose I want to access all
files containing the string "Segment" in all directories (and subdirectories)
in the directory "MyDisk:MyFolder:" .

  Another thing is the connection between full pathname and filerefnum:
If I want to open the file "MyDisk:MyFolder:AnotherFolder:MyFile" using
a highlevel file manager routine such as FSOpen() I must have the following
information:

   1. filename
   2. volume reference number
   3. reference number

I alredy have the filename, "MyFile", but have do I find out the volRefNum
and refNum? If I use SFGetFile() I get these things automatic, but then the
program has to stop and ask the user.


  Btw: I'm programming in C.


      /Olle