As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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
ContCentric