Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

deleteHDFS to remove empty folders within folders

avatar
Explorer

I have a deleteHDFS after a getHDFS processor which removes files older than a certain time period. The getHDFS removes the file no problem, but what I have after is folders within folders that are empty, so I am using a deleteHDFS just after that, that uses the $path attribute - but I then need to specify the folder that contains that $path as I already told the getHDFS processor where to look to expire files - so I use a $custom_path attribute for where to look and add the $path variable to the deleteHDFS processor, but it only deletes the last folder. Is there a way to tell the deleteHDFS processor to delete the $path and keep the $custom_path? Currently in the deleteHDFS processor I have the Path set to: ${custom_path}/${path} and Recursive set to True.

1 REPLY 1

avatar
Super Guru

@robnew ,

 

It would be easier if you could provide an example of what you're trying to explain.

 

Cheers,
André

 

--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.