Load entire folder structure, even with empty directories(?) | Community
Skip to main content
Level 2
April 9, 2024
Solved

Load entire folder structure, even with empty directories(?)

  • April 9, 2024
  • 1 reply
  • 768 views

Hi Community,

 

des AEM allow you to download directories (folders) that are empty?
Example: you have directory A, where folders A1, A2, A3 and A4 are stored. Content (assets) are only in folders A2 and A3 - A1 and A4 are empty. I would like to get folders A1-A4 during a download and not just A2 and A3.
Is this possible, if so, how?

 

THX for input

 

Frank

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kamal_Kishor

@frank0 : You can try to create groovy script and execute it on your instance.

thanks.

1 reply

Kamal_Kishor
Community Advisor
Community Advisor
April 9, 2024

@frank0 : It does not download the folders which do not contain any assets. Only non-empty folders are downloaded.

If it is important for you to know what are empty folders, you can try to do this using a groovy script. You can refer previously accepted response here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-query-all-empty-folders-in-aem-dam/m-p/577981

thanks.

Frank0Author
Level 2
April 9, 2024

@kamal_kishor thanks for yout input.
The link in the post is dead but it might be good to know that there is something groovy. Let's see, maybe someone will find the script.
THX

Kamal_Kishor
Community Advisor
Kamal_KishorCommunity AdvisorAccepted solution
Community Advisor
April 10, 2024

@frank0 : You can try to create groovy script and execute it on your instance.

thanks.