Page 1 of 1

Posted: 14 Dec 2017, 18:35
by woodslanding
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....

Posted: 14 Dec 2017, 18:41
by woodslanding
hmmm.... I imagine I could do this in a script. I'll go look for some pascal resources....

Posted: 14 Dec 2017, 22:55
by woodslanding
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??

Posted: 14 Dec 2017, 23:04
by woodslanding
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....?

Posted: 15 Dec 2017, 00:37
by woodslanding
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.