Question about wild-pathnames
Pascal Bourguignon
pjb at informatimago.com
Thu Jul 6 05:15:15 UTC 2023
Le 06/07/2023 à 01:26, Robert Goldman a écrit :
> In SBCL and Allegro, it's possible for UIOP to create a pathname for a
> file whose name is "*" and then we can find a file with such a(n odd)
> pathname.
>
> On ABCL, though, this gives me an error:
>
> |(truename (ensure-pathname "*")) |
>
> |(truename (uiop:ensure-pathname "*")) #<THREAD "interpreter" native
> {21C91F12}>: Debugger invoked on condition of type FILE-ERROR Cannot
> find the TRUENAME for a wild pathname. |
We use DIRECTORY to resolve wild pathnames:
(length (directory (uiop:ensure-pathname "*"))) ; --> 47
--
__Pascal Bourguignon__
More information about the armedbear-devel
mailing list