On Sat, Feb 26, 2011 at 8:33 PM, Zach Beane <xach@xach.com> wrote:
Juan Jose Garcia-Ripoll <juanjose.garciaripoll@googlemail.com> writes:

> $ ls -l |grep tmp
> drwxr-xr-x 20 jjgarcia jjgarcia        680 Feb 20 23:59 tmp
> $ ln -sf tmp foo
> $ ecl -norc -eval '(print (truename "foo"))' -eval '(quit)'
> #P"/Users/jjgarcia/tmp/"
> I would rather use this method.  It is more portable and FILE-KIND may or may
> not exist in the future!

You mean testing to see that the pathname returned by TRUENAME has no
name or type?

Exactly. I believe this was your original problem: you got a path without the proper format (no trailing slash) and your code did not know whether it was a directory or not.


Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)