Directory Node Folder Count & Names

Post requests for new features to this forum group. Any suggestion to expand the possibilities of Ventuz are welcome.

Moderator: Support

Post Reply
User avatar
Naggar
Posts: 101
Joined: 22 Dec 2016, 14:02
Location: Dubai, United Arab Emirates

Directory Node Folder Count & Names

Post by Naggar » 14 Nov 2018, 13:15

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

User avatar
Naggar
Posts: 101
Joined: 22 Dec 2016, 14:02
Location: Dubai, United Arab Emirates

Re: Directory Node Folder Count & Names

Post by Naggar » 14 Nov 2018, 13:17

or if it is possible to search for Folders through the search pattern property, that would be a nice workaround.

joschy
Posts: 135
Joined: 19 Jan 2012, 07:39
Location: Düsseldorf, Germany
Contact:

Re: Directory Node Folder Count & Names

Post by joschy » 16 Nov 2018, 14:45

you can do it by your own with scripting check C# Directory.GetDirectories.
There are many example codes on the internet ;)
3DJo - [Ventuz] freelancer and trainer

User avatar
Naggar
Posts: 101
Joined: 22 Dec 2016, 14:02
Location: Dubai, United Arab Emirates

Re: Directory Node Folder Count & Names

Post by Naggar » 06 Dec 2018, 11:42

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 :)

User avatar
Eric_RD
Posts: 96
Joined: 04 Jun 2014, 14:01
Contact:

Re: Directory Node Folder Count & Names

Post by Eric_RD » 23 Dec 2018, 15:35

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...)

User avatar
chriss0212
Posts: 646
Joined: 18 Jan 2012, 20:56
Location: wuppertal
Contact:

Re: Directory Node Folder Count & Names

Post by chriss0212 » 23 Dec 2018, 18:01

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
Attachments
GetFolders.vzs
(7.57 KiB) Downloaded 5 times

Post Reply