[Top][All Lists]

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

Re: convert-standard-filename

From: Eli Zaretskii
Subject: Re: convert-standard-filename
Date: Mon, 08 Aug 2011 05:53:20 +0300

> Date: Sun, 7 Aug 2011 17:20:29 -0400
> From: Sam Steingold <address@hidden>
> Cc: Stefan Monnier <address@hidden>, address@hidden
> On Sun, Aug 7, 2011 at 4:35 PM, Eli Zaretskii <address@hidden> wrote:
> >> From: Stefan Monnier <address@hidden>
> >> [file-name-equal] should only operate on names without performing
> >> any actual file/directory lookup.
> >
> > Why do you want to avoid hitting the disk?
> because hitting the disk is far more expensive.

So?  Does someone want to call convert-standard-filename in a tight
loop or something?

> when one is prepared to bear the cost, one can do
> (file-name-equal (truename f1) (truename f2))

You assume that truename does all the canonicalization.  Perhaps on
Unix it does, but not on other platforms.  Again, the case of 8+3
aliases on Windows comes to mind.

reply via email to

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