jmw@tasis.eecs.utas.edu.au (John Williams) (09/19/90)
Is Fattrib able to report on directories? According to my MWC doco a subdirectory is indicated by the bit pattern 0x10 encoded in the return value, but whenever I give it a directory Fattrib fails with a return value of -36 (file not found). I want to be able to detect the presence of a directory so I can create it if it is not there. So far the only way I have been able to get this to work is by calling Dcreate. If the directory doesn't exist I get a return value of zero for succesul creation; if it does already exist I get a return value of -36 (again). Is this the _only_ way to get that error? Any suggestions would be much appreciated. Thanx all, John M Williams jmw@tasis.eecs.utas.edu.au
davea@col.hp.com (David E Allen) (09/21/90)
jmw@tasis.eecs.utas.edu.au (John Williams) / 6:42 am Sep 19, 1990 /
> Is Fattrib able to report on directories?
My experience is the same as yours - NO. I use Fsfirst(). It will return the
correct attribute for a directory, although it's a bit more work, having to
set up a disk transfer buffer first (using Fsetdtc(), I believe).
I'm using TOS 1.? I wonder if it's fixed in 1.4?
dave allen, colorado