[PD] Store files names of folders in lists

Jamie Bullock jamie at postlude.co.uk
Thu May 12 20:29:49 CEST 2005


Hi,

You could use [shell] from ggee to get the directory listing, and then
[glue] and [lister] from zexy to create a dynamically sized list.
Something like:

ls
|
[shell]
|
[symbol]
|
[glue]
|
[lister]

And then connect the outlet of lister to the right inlet of glue to
recursively grow the list.

For the sort of processing you want though, it might be better to use
some kind of shell script (bash, perl etc) which you just call from the
PD [shell] object and pick up the results. 
 
Jamie

On Thu, 2005-05-12 at 08:14 -0700, pun chik wrote:
> hi, i have a folder with lots of files. i want to store the names of
> those files into a pd list and then apply some math operations . For
> example: my files are 020032020.wav , 023434.wav , 3576344.waf , etc
> 
> i would like to apply some math operations to the files (for example :0
> + 2 + 0 + 0 + 3 + 2 + 0 +2 + 0) adding , or rest, etc and then put the
> results into a new list.
> 
> Any idea would be appreciated
> many thanx
> 
> punkachuksj





More information about the Pd-list mailing list