Page 1 of 1
Directory Node Folder Count & Names
Posted: 14 Nov 2018, 13:15
by Naggar
Hello
I'd like to request an update on the Directory node..
if possible,in addition to file count, could we get folder count and/or folder names Array?
Thanks
Re: Directory Node Folder Count & Names
Posted: 14 Nov 2018, 13:17
by Naggar
or if it is possible to search for Folders through the search pattern property, that would be a nice workaround.
Re: Directory Node Folder Count & Names
Posted: 16 Nov 2018, 14:45
by joschy
you can do it by your own with scripting check C# Directory.GetDirectories.
There are many example codes on the internet
Re: Directory Node Folder Count & Names
Posted: 06 Dec 2018, 11:42
by Naggar
yeah that we ended up doing.. but again, im not really good with codes and scripts. so I had to get a programmer to do it for me...
Thanks though
Re: Directory Node Folder Count & Names
Posted: 23 Dec 2018, 15:35
by Eric_RD
It is even possible with a String Expression...
I think it might already be in the forum...
Pros for String Expression:
no compiling on startup needed
Cons for string expression:
No async functionality
Remember to always write the full class names in Expressions (System.IO.Directory.GetDirectories...)
Re: Directory Node Folder Count & Names
Posted: 23 Dec 2018, 18:01
by chriss0212
Because i am also not the best scripter on earth i tried a little workaround
You "just" need to copy a file with the same name into every sub directory in the tree... in my case i used dummie.txt. at the end you will get all sub directories as an array.
No scripting, no async problem... as long as the dir node has no async bug
Greetings
Christian