Dropfile: Cannot drop folder, output paths of individual files.

tildamin's icon

Im trying to have [dropfile] receive a folder and send out the exact filepaths of the files inside, one after another. I don't want to populate a [umenu] I just want to send the filepaths of the files out so I can store it (like in a coll). It would be nice if I could as well specify the file types but that is not all that important. If I specify the types I cannot drop a folder (the little "plus" icon doesn't show) just the files specified.

It seems possible to do this but no where on the forum is it explained and the help file does not explain this.

Any help would be much appreciated.

Emmanuel Jourdan's icon

It works for me. the type of folder is "fold". Could you post an example?

tildamin's icon

Hello Emmanuel,

I know from the help patch for [umenu] that one can populate a [umenu] using [dropfile] but I wish output only the filepaths for the individual files contained in the dragged and dropped folder.

This patch is stupid simple and I posted it per request, though I do feel silly posting something so simple. I think this question might be deceptively simple and I am making it over-complicated.

Best regards,

Max Patch
Copy patch and select New From Clipboard in Max.


Léopold Frey's icon

Hi Jon,

Max Patch
Copy patch and select New From Clipboard in Max.

just put a [folder] object after your dropfile.

Léo

tildamin's icon

Thanks for the reply Léo.

Your example did not work for me but I figured out why. In your patch: [loadbang]-->[msg types fold]-->[dropfile]-->[folder]. This printed: COUNT 0 and nothing else. After checking out the [folder] help patch I found that I could attach the [msg types "whatever I'm using"] and the [dropfile] (with no [msg types...])to the [folder] and get the names of the files to be printed. Note that this is not the desired result, I wanted full path names for each file in the folder.

But now I can concatenate the folder path from [dropfile] and the out put from [folder] to get what I want.

Max Patch
Copy patch and select New From Clipboard in Max.

Thanks for your help.