<div dir="ltr"><div>Hi, so, [file] is great, I have a [dir] object in ELSE that browses through files in a directory and I guess one can now do it all in plain Vanilla, but I was trying things and it's not that easy or straight forward.</div><div><br></div><div>In [dir] you can easily browse through files like giving it a file number so it queries and gives you a file name, and you can ask for specific extensions like ".wav". Say you want to load audio files from a directory, just use the 'seek <float>' message and seek for the files, like "seek 4" gives us the 5th audio .wav file. The [dir] object also gives us the number of found files so we can choose them randomly.</div><div><br></div><div>I can do this with [file] but it needs lots of stuff. Check out my attached image.</div><div><br></div><div>So, one thing I'd like, just get the filename and extension from [file split] as an option, so I wouldn't need [list split]. Also, something weird happened and files with space in its name came out as 'lists', not symbols.</div><div><br></div><div>Another thing is just an easier way to 'seek' for files with a specific extension and also get the number of found files.</div><div><br></div><div>And yes, getting the patch's directory by default would make things easier and bypass the need of [pdcontrol].</div><div><br></div><div>cheers</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter., 22 de mar. de 2022 às 22:30, Christof Ressi <<a href="mailto:info@christofressi.com">info@christofressi.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>[dir( -> [pdcontrol]. Not very intuitive, I know... <br>
    </p>
    <p>We have been discussing to add such functionality to the [file]
      object family, where it would make more sense. See
      <a href="https://github.com/pure-data/pure-data/issues/1539" target="_blank">https://github.com/pure-data/pure-data/issues/1539</a>.</p>
    <p>Christof<br>
    </p>
    <div>On 23.03.2022 02:23, Philip Stone via
      Pd-list wrote:<br>
    </div>
    <blockquote type="cite">
      
      
      
      <div>
        <p class="MsoNormal">I’m currently using [ggee/getdir] to
          determine the path of the current patch, and I was hoping that
          [file] would give me a vanilla alternative. It doesn’t seem to
          – am I missing something?<u></u><u></u></p>
        <p class="MsoNormal"><u></u> <u></u></p>
        <p class="MsoNormal"><u></u> <u></u></p>
        <p class="MsoNormal">Thanks,<u></u><u></u></p>
        <p class="MsoNormal"><u></u> <u></u></p>
        <p class="MsoNormal">Phil Stone<u></u><u></u></p>
        <p class="MsoNormal">University of California, Davis<u></u><u></u></p>
        <p class="MsoNormal"><u></u> <u></u></p>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
  </div>

_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div></div>