Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!mcnc!ece-csc!ncrcae!ncr-sd!hp-sdd!hplabs!ucbvax!jade!eris!mwm From: mwm@eris.UUCP Newsgroups: comp.sys.amiga Subject: Re: File naming conventions. Message-ID: <5287@jade.BERKELEY.EDU> Date: Thu, 1-Oct-87 08:29:14 EDT Article-I.D.: jade.5287 Posted: Thu Oct 1 08:29:14 1987 Date-Received: Sat, 3-Oct-87 08:45:44 EDT References: <503@louie.udel.EDU> <1929@umd5.umd.edu> <775@sugar.UUCP> <5218@jade.BERKELEY.EDU> <837@sugar.UUCP> Sender: usenet@jade.BERKELEY.EDU Reply-To: mwm@eris.BERKELEY.EDU (Mike (My watch has windows) Meyer) Organization: Missionaria Phonibalonica Lines: 145 Rather than do a point by point, I'll lay out the way I read the AmigaDOS file system. As with Unix, I get a different meaning than Peter does - noticably influenced by the differences in the way I read the Unix file system. 1) Directory names: starts at one of two places, the root of a device or the current directory. The first case is signified by ":" in the file name, the second by that not happening. The directory name stops at the last "/" or ":", and is followed by the name of the file. 2) As a special case, the directory name "/" in any directory means go to the parent of that directory if it exists. If it doesn't exist, it's an error. This is nearly identical to my reading of the Unix file system, except that ":" replaces "/" to indicate the root, and that "/" to get to a parent is a special case instead of every directory having entries pointing to "." and "..". So, rebuilding Peter's table using the above, we see: Concept Unix AmigaDOS root "/" [^:/]*: (not sure about the regexp) filename [^/]* [^:/]* directory .*/ [^:/]*:[^:]*/ current "" "" ./ missing parent ../ / Both suffer from there not being documentation that tries to explain how the parts of the file name space fits together. I suspetc that the designers of the two file systems didn't worry about it, and just put togehter something that worked. Question, then some answers: You keep claiming that utilities pop you up a level. Could you name them? The only things I've ever had trouble with putting things in the wrong directory are DPaint II (file requesters remember devices, but not paths) and Manx cc (doesn't put .o files in the currenct directory). <> <> This doesn't work on other devices, and will give fits to some <> drivers. And you may want those programs to be able to use device <> drivers (conman being the one that leaps to mind). <