I am trying https://github.com/zhihailiu/alfresco-folder-size to calculate the size of folder in alfresco,it is working fine for calculating the size of folder but I also want to calculate the number of sub folders and files in the folder.any guidance regarding this would be highly appreciated
Hello Ayushi Agrahatri,
By using java api you can calculate the subfolders.
List<FileInfo> children = serviceRegistry.getFileFolderService().listFolders(src);
int subfoldersize = children.size();
Thanks,
Kalpesh
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.