Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!sunic!sics.se!ollef From: ollef@sics.se (Olle Furberg) Newsgroups: comp.sys.mac.programmer Subject: File Manager: full path names and listing files. Message-ID: <1991Mar29.162430.25353@sics.se> Date: 29 Mar 91 16:24:30 GMT Sender: news@sics.se Organization: Satellite Image in Kiruna Corporation Lines: 24 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