Skip to content

How to use SelectFiles to read all directories inside a folder?  #2132

@rattar1989

Description

@rattar1989

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions