How to select only a directory?

Hi people!
I’m not so a newbie, but i cant find a way to make people select a directory, as default directory, for samples or anything else…FileDialog should be able to… but dont know how…
Thx

It works if you set fileMode to 2:

(
FileDialog(
	{ |paths|
		postln("Selected path:" + paths[0]);
	},
	{
		postln("Dialog was cancelled. Try again.");
	}, 
	2, 
);
)

Best,
Paul

1 Like

thx!
sorry, i found this example, tried it, but mismached the result