Welcome to %s forums

BrainModular Users Forum

Login Register

get list of sub-folders?

I need help on a Patch
Post Reply
woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 14 Dec 2017, 18:35

I suppose I could create a list by extracting parts of the file path list, but is there an easier way?

I imagined a 'folders' option in the 'file type' drop down for the file lister object, but that doesn't exist....
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 14 Dec 2017, 18:41

hmmm.... I imagine I could do this in a script. I'll go look for some pascal resources....
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 14 Dec 2017, 22:55

well it seems like the stock pascal method for this uses types:

pathstr
and
searchrec

which do not seem to be supported.... so nothing direct at the moment. I can extract the parent folder portion of each file. Then I'll have a bunch of duplicate folder names in my stringList. Is there a simple way to remove them??
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 14 Dec 2017, 23:04

TStringlist.setSorted(true) does not seem to be recognized. Theres a method for disallowing duplicates, but the list has to be sorted.....

Maybe I have the syntax wrong....?
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 15 Dec 2017, 00:37

well, I haven't found a way yet that will show me empty folders. I'm using the output from the usine module, but it doesn't include folders, so the empty ones are not on the list.
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

Post Reply

Who is online

Users browsing this forum: No registered users and 254 guests