[Swift-devel] Q of traversing all files in one directory

Ben Clifford benc at hawaga.org.uk
Mon Dec 29 13:16:33 CST 2008



On Mon, 29 Dec 2008, Zhao Zhang wrote:

> > You want to explicitly list the files? Yes/no?
> >   
> No, I don't want to explicitly list the files.

You can map some files in a diretory based on a wildcard pattern to an 
array using filesys_mapper 
http://www.ci.uchicago.edu/swift/guides/userguide.php#mapper.filesys_mapper 
or the simple_mapper 
http://www.ci.uchicago.edu/swift/guides/userguide.php#mapper.simple_mapper



> > And then generate the filenames for 'outfile' automatically?
> >   
> yes, I think I know how to do this.
> 
> zhao
> 
> 



More information about the Swift-devel mailing list