Path: utzoo!attcan!uunet!munnari.oz.au!diemen!tasis.eecs.utas.edu.au!jmw From: jmw@tasis.eecs.utas.edu.au (John Williams) Newsgroups: comp.sys.atari.st Subject: Fattrib and detecting directories Keywords: Fattrib, directory, Dcreate Message-ID: <1752@diemen.utas.edu.au> Date: 19 Sep 90 12:42:07 GMT Sender: news@diemen.utas.edu.au Lines: 14 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