List only the immediate subdirectories under the specified path

Mohammed
Mohammed Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 43 ✭✭✭
edited July 16 in Using Dataiku

Hello everyone,

I need your help with reading only the immediate subdirectories in a managed folder. Currently, I am using the code below, but it lists all the files, even those inside the subfolders. What I want is to display only the immediate folders and files in the folder.

library(dataiku)
paths <- dkuManagedFolderPartitionPaths("folder_name")

Thank you in advance for your help.

Setup Info
    Tags
      Help me…