[Top][All Lists]

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

Re: file-attributes inconsistent w. stat when .. or . symlinked

From: Vivek
Subject: Re: file-attributes inconsistent w. stat when .. or . symlinked
Date: Sun, 7 Sep 2003 23:54:15 +0100 (BST)

On Sun, 7 Sep 2003, Richard Stallman wrote:

> I am not sure whether file-attributes should be changed,
> so for the nonce we should fix this in ls-lisp.el.
> Thanks.

No problem - the docs do say that the car of the list returned is the
name linked to, and for "." and ".." this is inconsistent with other
symlinks: For every other possible symlinked filename you can then call
`file-attributes' or `file-symlink-p' on the car of the returned value
and get a sensible answer, whereas for these two filenames ( or
presumably their equivalents on other platforms ) the caller has to
treat the values as special cases, so I would at least lean towards
changing the reported target filename to be relative to the directory
you're currently in for those two cases, rather than the directory above,
as it is now.

reply via email to

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