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

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sat Feb 26 19:23:44 UTC 2011


$ 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!

Juanjo


-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20110226/5d7cd808/attachment.html>


More information about the ecl-devel mailing list