BufFolders/BufFiles issue

Hello!
I’m trying to get @madskjeldgaard’s PolyBuf quark running but i’m getting some unexpected results.

Following the example code:

b = BufFolders(s, "my/path"); 

returns:

Key folder1 contains 0 buffers now
Key folder2 contains 0 buffers now
Key folder3 contains 0 buffers now
-> Dictionary[ (folder1 -> a BufFiles), (folder2 -> a BufFiles), (folder3 -> a BufFiles)]

This strikes me as wierd, shouldn’t the number of buffers correspond to the number of files in the folder?
Moving on:

b[\folder1]

returns:

-> a BufFiles

Now running the Pbind:

(
Pbind(
    \instrument, \bufferPlayer, // (you need to make a bufferPlayer synth to make this work
    \buffer, Prand(b[\folder1], inf), // Randomly choose from the kick drum samples
    \dur, Pseq([0.25, 0.5, 0.25, 0.125, 0.125],inf) // A terrible rhythm
).play;
)

Returns this error message:

ERROR: ListPattern (Prand) requires a non-empty collection; received nil.
CALL STACK:
	Exception:reportError
		arg this = <instance of Error>
	Nil:handleError
		arg this = nil
		arg error = <instance of Error>
	Thread:handleError
		arg this = <instance of Thread>
		arg error = <instance of Error>
	Object:throw
		arg this = <instance of Error>
	Meta_ListPattern:new
		arg this = <instance of Meta_Prand>
		arg list = nil
		arg repeats = inf
	< closed FunctionDef >  (no arguments or variables)
	Interpreter:interpretPrintCmdLine
		arg this = <instance of Interpreter>
		var res = nil
		var func = <instance of Function>
		var code = "(
Pbind(
    \instrument, \b..."
		var doc = nil
		var ideClass = <instance of Meta_ScIDE>
	Process:interpretPrintCmdLine
		arg this = <instance of Main>
^^ The preceding error dump is for ERROR: ListPattern (Prand) requires a non-empty collection; received nil.

To my novice eye it seems like BufFolders just isn’t creating the necessary buffers for some reason?
My guess is I’m doing something wrong. Don’t know what though.
Any help would be appreciated, this quark looks like a great convenience.

cheers.

Just bumping this. Sorry…