🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problems with Fattrib on a directory

#25403
From: leavens
Date: Wed, 04 Mar 1987 20:26
13 lines
1256 bytes
> I have been using 'Fattrib' gemdos function to read the attributes of a
> directory but all it returns is 0 without bit 0x10 set to indicate that
> it is a directory.

I just spoke with one of the programmers, and apparently you can't read 
the directory bit using Fattrib.  This is because Fattrib has the possibility
of changing the values for this attribute bit, and since doing so would
roach the system (you don't want to set a non-directory file to a directory,
and vice-versa), the call just doesn't return that info.  The programmer
suggested using Fsfirst, which also returns the attrib info, but in a read-only
fashion.

--alex (The Other One)
Technical Details
Message-ID: <582@atari.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!bellcore!faline!scherzo!allegra!mit-eddie!ll-xn!ames!ucbcad!ucbvax!decvax!decwrl!sun!imagen!atari!leavens
References: <8702170915.AA29778@jade.berkeley.edu>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!bellcore!faline!scherzo!allegra!mit-eddie!ll-xn!ames!ucbcad!ucbvax!decvax!decwrl!sun!imagen!atari!leavens
From: leavens@atari.UUCP
Newsgroups: comp.sys.atari.st
Subject: Re: Problems with Fattrib on a directory
Message-ID: <582@atari.UUCP>
Date: Wed, 4-Mar-87 15:26:15 EST
Article-I.D.: atari.582
Posted: Wed Mar  4 15:26:15 1987
Date-Received: Sat, 7-Mar-87 00:11:14 EST
References: <8702170915.AA29778@jade.berkeley.edu>
Organization: Atari Corp., Sunnyvale CA
Lines: 12