08-29-2017 12:46 PM
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
08-30-2017 01:51 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.