Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

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

Avatar

Level 2

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 9

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

thanks.

View solution in original post

3 Replies

Avatar

Level 9

@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-fol...

thanks.

Avatar

Level 2

@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

Avatar

Correct answer by
Level 9

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

thanks.