🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #28882

GEMDOS cannot find subdirectories after disk swap

#28882
From: Michael Fischer
Date: Fri, 23 Oct 1987 16:34
25 lines
1696 bytes
Jim McCabe asks:
> I'm writing a program where it is necessary for the user to
> take out the disk that the program was loaded from and insert
> a data disk.  From this program, when I try to access a file
> after swapping disks, it can find files just fine if they are
> in the root directory, but subdirectories cause error -33 (at least
> I think that's what error it was...  haven't looked at it in
> a month or so...) which means that the pathname isn't found
> or whatever.

I've noticed this problem, too.  It seems to be a GEMDOS bug.  One
fix is to use Fsfirst with a path in the root directory to force
GEMDOS to access the disk after the swap.  Then you should be able
to follow that by an Fopen for the file you really wanted.  Note
however that if you are not specifying the complete pathname (with
a "\" immediately after the ":"), then you are asking for a file
relative to the current working directory, which hasn't been resent.
If this is your problem, then you also need to set the working
directory after the disk swap.

Hope this helps.

--Mike Fischer <fischer@yale.arpa>

-------
Technical Details
Message-ID: <8710231534.AA01401@ATHENA.CS.YALE.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!hao!ames!sdcsvax!ucbvax!YALE.ARPA!fischer-michael

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!hao!ames!sdcsvax!ucbvax!YALE.ARPA!fischer-michael
From: fischer-michael@YALE.ARPA (Michael Fischer)
Newsgroups: comp.sys.atari.st
Subject: GEMDOS cannot find subdirectories after disk swap
Message-ID: <8710231534.AA01401@ATHENA.CS.YALE.EDU>
Date: Fri, 23-Oct-87 11:34:14 EST
Article-I.D.: ATHENA.8710231534.AA01401
Posted: Fri Oct 23 11:34:14 1987
Date-Received: Sun, 25-Oct-87 16:02:49 EST
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 25