Directory() does not include sub directories

Sorry I missed this link but it is the top link in the results for the search term “folder recursion”
How to call SHFileOperation API to recursively delete files and folders - questions - ClarionHub

You also dont say what Tree Traversal method you want to use.
Tree traversal - Wikipedia

I had written some code somewhere which let me choose what tree traversal methods to use, I’ll see if I can find it later on tonight, I dont think its in a class though, but it might have been some of the code that got wiped from my machine when it got hacked, so if I can find it, I’ll post it.

Edit. I’ve just seen above @CarlBarnes has posted some working code, so that should get you going.