scsh-users
[Top] [All Lists]

Re: guaranteed processing of directory trees?

To: Scsh Users <scsh-users@scsh.net>
Subject: Re: guaranteed processing of directory trees?
From: RT Happe <rthappe@web.de>
Date: Sat, 16 Jul 2005 09:41:18 +0200
List-id: <scsh-users.list-id.scsh.net>
Sender: rthappe@web.de
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

<Prev in Thread] Current Thread [Next in Thread>