Or better yet: https://sourceforge.net/p/pure-data/svn/HEAD/tree/trunk/externals/ggee/control/getdir.c

and for good measure: https://sourceforge.net/p/pure-data/svn/HEAD/tree/trunk/externals/ggee/control/stripdir.c

AKA existing solutions which already work :D I just need something like those in vanilla/libpd.

This is basically because I can't call "pd open /path/to pathch.pd" with a relative path to the current canvas ...

On Sep 23, 2014, at 7:40 PM, pd-list-request@lists.iem.at wrote:

From: Billy Stiltner <billy.stiltner@gmail.com>
Subject: Re: [PD] iemlib from synaptic is missing filter~ and others like iem_cot4~
Date: September 23, 2014 at 7:40:05 PM EDT
To: Dan Wilcox <danomatika@gmail.com>
Cc: Miller Puckette <msp@ucsd.edu>, "pd-list@lists.iem.at" <pd-list@lists.iem.at>

http://stackoverflow.com/questions/12489/how-do-you-get-a-directory-listing-in-c


here is how I done it on NT long ago

--------
Dan Wilcox
@danomatika