Fetching Sub Folder with Deluge

Fetching Sub Folder with Deluge

I have written some script in Deluge to fetch a folder dynamically via a custom module, then save a merge file in the folder from the deals module. I have that running perfectly now. The problem is I actually want to save the file two levels deeper in the folders. Only the main folder is listed in the custom module. I can't seem to find a way to identify and fetch the sub folders.  Is this possible?