<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">sounds good, so what would be an external with approach number 2?<div class=""><br class=""></div><div class="">cheers</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 07 Dec 2015, at 17:26, Jonathan Wilkes <<a href="mailto:jancsika@yahoo.com" class="">jancsika@yahoo.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" class=""><div id="yui_3_16_0_1_1449502018253_8189" class=""><span class="">It's not possible with Vanilla objects.</span></div><div class=""><span class=""><br class=""></span></div><div id="yui_3_16_0_1_1449502018253_8191" class=""><span id="yui_3_16_0_1_1449502018253_8190" class="">There are three possible interfaces I've seen for an external that lists files:</span></div><div dir="ltr" id="yui_3_16_0_1_1449502018253_8193" class=""><span id="yui_3_16_0_1_1449502018253_8192" class="">1) linked-list style -- start at the beginning, send a "next" message to output the next file in the directory, bang an ancillary outlet when finished. (You can have more complex variations on this, like "rewind" to go back to the head...)</span></div><div dir="ltr" id="yui_3_16_0_1_1449502018253_8083" class=""><span id="yui_3_16_0_1_1449502018253_8170" class="">2) list style -- output a single list where each element is a file in the directory.</span></div><div dir="ltr" id="yui_3_16_0_1_1449502018253_8083" class=""><span id="yui_3_16_0_1_1449502018253_8468" class="">3) sequence -- output each file as a separate message, until there are no files left to output.</span></div><div dir="ltr" id="yui_3_16_0_1_1449502018253_8083" class=""><span class=""><br class=""></span></div><div dir="ltr" id="yui_3_16_0_1_1449502018253_8083" class=""><span id="yui_3_16_0_1_1449502018253_8641" class="">I'm not a fan of #1 as it almost always requires boilerplate (like [until] and a wire connecting upwards</span>).</div><div dir="ltr" id="yui_3_16_0_1_1449502018253_8083" class=""><span class=""><br class=""></span></div><div dir="ltr" id="yui_3_16_0_1_1449502018253_8083" class=""><span id="yui_3_16_0_1_1449502018253_8940" class="">I also don't like #3 because it forces the user to eat the cost of sending all those messages.  For example, the user may just want to count how many files there are.  Also, it is a re-entrancy </span>nightmare just waiting to happen.</div><div dir="ltr" id="yui_3_16_0_1_1449502018253_8083" class=""><span class=""><br class=""></span></div><div dir="ltr" id="yui_3_16_0_1_1449502018253_8083" class=""><span id="yui_3_16_0_1_1449502018253_9011" class="">#2 is the most flexible.  You can use it with [list-drip] to get #3 with very little additional overhead.</span></div><div dir="ltr" id="yui_3_16_0_1_1449502018253_8083" class=""><span class=""><br class=""></span></div><div dir="ltr" id="yui_3_16_0_1_1449502018253_8083" class=""><span id="yui_3_16_0_1_1449502018253_9268" class="">-Jonathan</span></div> <br class=""><div class="qtdSeparateBR"><br class=""><br class=""></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" class=""> <div dir="ltr" class=""><font size="2" face="Arial" class=""> On Monday, December 7, 2015 4:27 AM, Simon Iten <<a href="mailto:itensimon@gmail.com" class="">itensimon@gmail.com</a>> wrote:<br class=""></font></div>  <br class=""><br class=""> <div class="y_msg_container">what would be an appropriate way to get all filenames out of a directory in pd-vanilla? <br class=""><br class="">i have only seen very old posts about this, they all use pd-extended. is there any recent object/external that does this? <br class="">it could be nice if openpanel could also open a directory and output all the filenames...<br class=""><br class="">alternatively is there a way to just read all the files from a directory one after the other?<br class=""><br class="">cheers <br class=""><br class=""><br class="">_______________________________________________<br class=""><a ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at" class="">Pd-list@lists.iem.at</a> mailing list<br class="">UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank" class="">http://lists.puredata.info/listinfo/pd-list</a><br class=""><br class=""><br class=""></div>  </div> </div>  </div></div></div></div></blockquote></div><br class=""></div></body></html>