To access the subfolders of the samples folder which is in the rais folder

I have this script

d.add(\folders -> PathName(thisProcess.nowExecutingPath.dirname ++ "/samples/").entries);
(
for(0, d[\folders].size -1,
	{|i| d.add(d[\folders][i].folderName-> d[\folders][i].entries.collect({
	|sf|
	Buffer.read(s, sf.fullPath);
	});
)});
)

I would like to be able to access the subfolders of the samples folder which is in the rais folder. I have tried to implement the deepFiles method but have not been successful. Does anyone know how to do this. Thank you very much

Hey i think this should work:

(
~makeBuffers = {|path|
	~samples = Dictionary.new;
	PathName(path).entries.do{ |subfolder|
		var soundfiles = Array.fill(subfolder.entries.size,{ |i|
			Buffer.read(s, subfolder.entries[i].fullPath);
		});
		~samples.add(subfolder.folderName.asSymbol -> soundfiles);
	};
};
)

~path = PathName(thisProcess.nowExecutingPath).parentPath ++ "buffers";
~makeBuffers.(~path);

// access your buffers inside your dictionary 
~samples[\subfolder][index];