Re: guaranteed processing of directory trees?
Eric Knauel <[email protected]> Sun, 17 Jul 2005 08:55:25 +0200
| Newsgroups | gmane.lisp.scheme.scsh |
|---|---|
| Message-ID | <[email protected]> |
On Thu 14 Jul 2005 00:09, "Sam Smith" <[email protected]> writes: > I can't find a standard version of the ftw thingie in ksh. > > 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. Sunterlib[1] contains the dir-streams package, which offers functions for representing directories as streams of file objects and traversing them in terms of FOLD, MAP, and FOR-EACH operations. That might be what you are looking for. -Eric Footnotes: [1] <http://www.scsh.net/resources/sunterlib.html> -- "Excuse me --- Di Du Du Duuuuh Di Dii --- Huh Weeeheeee" (Albert King)