Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!iuvax!uxc.cso.uiuc.edu!garcon!pequod.cso.uiuc.edu!dorner From: dorner@pequod.cso.uiuc.edu (Steve Dorner) Newsgroups: comp.sys.mac Subject: Re: Saving vRefNum's Message-ID: <1471@garcon.cso.uiuc.edu> Date: 14 Jul 89 15:36:49 GMT References: <84039@ti-csl.csc.ti.com> Sender: news@garcon.cso.uiuc.edu Reply-To: dorner@pequod.cso.uiuc.edu (Steve Dorner) Organization: University of Illinois at Urbana-Champaign Lines: 15 In article <84039@ti-csl.csc.ti.com> leeke@m2.UUCP (Steve Leeke) writes: >I would like to be able to recursively scavange a directory for a >certain type of file and save the vRefNum when a file of a certain >type is found. I've included to code I'm using by it seems to cause >problems since the working directory is closed after I save the >vRefNum, but if I leave it open I wind up with too many working >directories open. Any suggestions? Save the DirId instead of the vRefNum. You can always open it as a working directory later, when you actually intend to USE it. The DirId is also unique forever for a particular directory on a particular volume. -- Steve Dorner, U of Illinois Computing Services Office Internet: s-dorner@uiuc.edu UUCP: {convex,uunet}!uiucuxc!dorner IfUMust: (217) 244-1765