[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Don't concat directories to file names

From: Stefan Monnier
Subject: Re: Don't concat directories to file names
Date: Mon, 25 Jun 2007 12:27:38 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

> I'm not going to enter an OS flamewar, but in my younger days I hacked
> VAX/VMS, where a filename and a directory were clearly distinct :)

Emacs follows this idea as well.  I.e. a directory is a file, and it has two
names: one to treat it as a filem and another to treat it as a directory.
So /usr is a directory whose file name is "/usr" and directory name is
"/usr/", see file-name-as-directory and directory-file-name.

Unider Unix, the trailing slash often makes no difference, so people tend to
forget about the distinction, but occasionally the difference is significant.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]