[Ecls-list] Determining if a pathname refers to a directory

Zach Beane xach at xach.com
Sat Feb 26 19:33:42 UTC 2011


Juan Jose Garcia-Ripoll <juanjose.garciaripoll at 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?

Zach




More information about the ecl-devel mailing list