Re: guaranteed processing of directory trees?
RT Happe <[email protected]> Sat, 16 Jul 2005 09:41:18 +0200
| Newsgroups | gmane.lisp.scheme.scsh |
|---|---|
| Message-ID | <[email protected]> |
Sam Smith wrote:
> I did find some snippets of code to process a directory tree, using
>
> (run/strings* (find ...))
>
> But I don't know if this guarantees the processing of all files,
> directories, symlinks, etc ..., even with spaces, quotes, weird euro
> or Asian characters, and so forth.
It will let you down on file names containing newlines.
> Does anyone have a snippet that shows how to do that?
Not my lazy me, but if you write a general directory tree walker,
probably based on DIRECTORY-FILES and hand-crafted recursion,
consider sharing it in the code snippets wiki
http://www.scsh.net/cgi-bin/wiki.cgi?CodeSnippets
rthappe