Notifications
Clear all

[Closed] Get all folders and subfolders

Hi,*

I need a function to get all directories and subdirectories of a folder.

I think this needs some recursive function, but Im very bad at recursive thinking.

I got sth like this… but ofcourse not working:

fn getDirs A NULL = (
for i in (getDirectories (A + “*”)) do (
append NULL i
arr = getDirs i
)
)

1 Reply

Ok,*

I guess Im not that bad. I was very close :)*This is working. Yeeeaaaah

#
fn getDirs A NULL = (
for i in (getDirectories (A + “*”)) do (
append NULL i
getDirs i NULL
)
)
#