if i use this to download for folders within aem dam asset folder say /content/dam/we-retail/en/people , the downloaded zip file when extracted has one extra folder with file name. How to get ride of those extra folders?
/libs/wcm/core/content/misc node get resolved to /miscadmin in aem and one of author has updated this node. That was the root cause of the issue. i reverted it back and it starts working.