Here is my data_organization function. This is used in the first node of my workflow.
def data_organization(in_path):
do_something...
return out_path
The function receives in_path as an input (a directory) which is a path of one subject folder. Then it organizes all the sub-folders in a desired way and it returns the path of the organized folder. Folders' name have a pattern. As SelectFiles finds files with specific patterns, is it possible to use it to find specific directories and pass them other nodes (e.g. to the above node)?