[Openmcl-devel] directory, create-directory, ...

Gary Byers gb at clozure.com
Mon Oct 6 20:01:16 UTC 2008


I started to write a much longer response, but it was amounting to a
CL pathname tutorial.  As Hans pointed out, Peter Seibel has already
written one (and it appears to be quite good).  If reality doesn't
match one's intuitions about it, there are two general explanations
for that:

  1) Reality is wrong somehow.
  2) One's intuitions are ill-founded.

I strongly suspect that reality is often just plain wrong, but that
suspicion has never done me much good ...  Please read Peter's tutorial.

The keyword arguments to DIRECTORY should really be documented
somewhere other than in comments in the source, but they have nothing
to do with how namestrings are parsed into pathnames in general or in
a particular implementation.  (They do have to do with whether things
which could potentially be included in DIRECTORY's results are in fact
included in those results.)

Likewise, it'd be better if the MODE argument to CREATE-DIRECTORY
was documented (via DOCUMENTATION or the manual or both.)   It'd
be even worse than it is if sources weren't available or if M-.
didn't work.

On Mon, 6 Oct 2008, j-anthony at comcast.net wrote:

>
> I sent this out, but I think I forgot to include the group...
>
> Anyway, yes, (directory "/x/y/*.lisp") for example does what you would
> expect.  Using only a wild card though doesn't get all files: (directory
> "/x/y/*") => nil.  You can use (directory "/x/y/*.*") but that would seem
> to indicate only files with a "." in their name.  It may be that this is
> where the various keywords to directory come into play.  Are/where are
> these described?  Also, R.Stoye informed me that the MODE keyword for
> create-directory is for indicating the unix mode/permissions for the
> directory.  Again, where is this impl specific type stuff described for
> CCL?  For example, I now know what MODE is for, but still don't know how it
> is specified (ala' chmod or ???)
>
> Thanks!
>
> /Jon
>
>
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://link.mail2web.com/mail2web
>
>
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
>
>



More information about the Openmcl-devel mailing list