🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #24837

Re: Mac programming question

#24837
From: Ken Mitchum
Date: Sat, 06 Feb 1988 22:27
24 lines
1419 bytes
In article <3207@super.upenn.edu> neil@dsl.cis.upenn.edu.UUCP (Neil Radisch) writes:
>How does one tell SFGetfile that you want it to list files from a directory
>other than the current one. I've tried various system calls to set the


Two globals contain the information used by the SF routines to decide
what directory they are in:

(int) SFSaveDisk  -  contains the negative of the volume (NOT a working
directory number).

(long) CurDirStore contains the directory ID of the directory.

Set these before calling the SF routines, and they will use the volume and
directory you specify.

See PBGetVol() and PBGetWDInfo() for routines that convert working directory
numbers to/from real directory numbers. (A working directory number is like
a volume ref number, and is what is returned by the SFGetFile() call if
you are using HFS. You need to convert this to a true volume number and true
directory number.

-ken mitchum
univ of pgh. DSL
Technical Details
Message-ID: <967@cadre.dsl.PITTSBURGH.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bbn!rochester!PT.CS.CMU.EDU!cadre!km
References: <3207@super.upenn.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bbn!rochester!PT.CS.CMU.EDU!cadre!km
From: km@cadre.dsl.PITTSBURGH.EDU (Ken Mitchum)
Newsgroups: comp.sys.mac
Subject: Re: Mac programming question
Message-ID: <967@cadre.dsl.PITTSBURGH.EDU>
Date: 6 Feb 88 22:27:08 GMT
References: <3207@super.upenn.edu>
Reply-To: km@cadre.dsl.pittsburgh.edu.UUCP (Ken Mitchum)
Distribution: comp.sys.mac
Organization: Decision Systems Lab., Univ. of Pittsburgh, PA.
Lines: 24