directory et chemin
Sujet: directory et chemin De: manuel.giraud (l' arobase) gmail.com (Manuel Giraud) Groupes: fr.comp.lang.lisp
Organisation: Nil
Date: 10. Nov 2006, 13:52:32
Bonjour f.c.l.l,
Une petit problème qui me soucie depuis ce matin. Soit le code suivant:
(defparameter *root*
(make-pathname :directory '(:relative ".data")))
(defparameter *wild*
(merge-pathnames #p"**/*.*" *root*))
alors un appel à (directory *wild*) me donne ça:
==> (#P"/usr/home/giraud/.data/bar.dat"
#P"/usr/home/giraud/.data/toto.dat")
Ma question est : comment obtenir le plus (or 'simplement 'élégamment)
une réponse avec des pathname relatif (i.e. #P".data/bar.dat")? J'ai
beau chercher dans les CLHS, je vois pas. (note : j'espère que ça ne
dépend pas de l'implém).
--
Manuel Giraud
|
| actualité |
Another dialectNewmobilecomputing.com - 5 jan 2009by BlueofRainbow on Tue 6th Jan 2009 05:40 UTC I'm glad to see a renewed interest in LISP. I have always enjoyed the language and what can be done with it. ... |
|
| source |
|