On Sat, Feb 26, 2011 at 8:33 PM, Zach Beane <[email protected]> wrote:

> Juan Jose Garcia-Ripoll <[email protected]> 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.

Juanjo

-- 
Instituto de FĂ­sica Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Ecls-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to