[PD-dev] Re: [PD] [folder_list]
Hans-Christoph Steiner
hans at eds.org
Fri Mar 31 03:39:45 CEST 2006
On Mar 30, 2006, at 2:14 PM, B. Bogart wrote:
> Hey Hans,
>
> I don't see this in CVS, were you waiting for a folder for the libdir
> for "file operations" first?
Its in externals/hcs/folder_list.c
> I have some feedback.
>
> My dirlist passed the file list out as a list, which I think makes
> sense. Its much easier to take a list and [drip] it onto seperate
> messages than it is to take the messages and remake them into a
> list. If
> you can convince me that sending the listing of files out as seperate
> messages is the best solution then I would suggest a second outlet
> that
> either bangs when all the messages have been sent, or sends out the
> number of messages (files) it is going to print out.
There are two reasons that I made it output each file separately.
First, to make it similar in interface to [qlist] and [textfile].
Next, and more importantly, most file processing is going to happen
on a per-file basis, at least in my scripting experience. For
example, you might want to step thru a list of files and test which
is bigger than 1MB, or which is a directory.
But yes, the completion bang should be added, and is planned... then
it would work really well with an [until].
If you need a list, you can use Cyrille's [tolist] which is in
externals/mapping/tolist.pd, and will be in upcoming Pd-extended
releases.
.hc
>
> .b.
>
>
> Hans-Christoph Steiner wrote:
>>
>> This object is the equivalent of the UNIX command "ls -d1A". It
>> basically gives you a listing of files based on a "glob" pattern,
>> like
>> "*.*", "/tmp/?", etc. This is the first step for building out a
>> full
>> library of file objects.
>>
>> Its in CVS in externals/hcs. It builds with "cd externals/ && make
>> buildsrc", then it'll be in externals/build/src along with everything
>> else.
>>
>> (of course, it'll be included in Pd-extended ;)
>>
>> .hc
>>
>>
>> _____________________________________________________________________
>> ___
>> ____
>>
>> "Information wants to be free."
>> -Stewart Brand
>>
>>
>> ---------------------------------------------------------------------
>> ---
>>
>> _______________________________________________
>> PD-list at iem.at mailing list
>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/
>> listinfo/pd-list
________________________________________________________________________
____
"The arc of history bends towards justice."
- Dr. Martin Luther King,
Jr.
More information about the Pd-dev
mailing list