How to find the size of the folder in a site?

cancel
Showing results for 
Search instead for 
Did you mean: 
madhu_sudireddy
Active Member

How to find the size of the folder in a site?

How to find the size of the folder in a site?

2 Replies
sanjaybandhniya
Intermediate

Re: How to find the size of the folder in a site?

Please check this.It is used to add add size as folder metadata.

https://github.com/zhihailiu/alfresco-folder-size

krutik_jayswal
Senior Member II

Re: How to find the size of the folder in a site?

You need to fetch content of every node inside folder and calculate the size.This will be recursively calculated.Thumbnail is also children of content node, if you would like to ignore thumbnail , you need to explicitly put same condition in code.

This code is in below file in addon mentioned by Sanjay Bandhniya

https://github.com/zhihailiu/alfresco-folder-size/blob/master/repo-amp/src/main/java/com/acme/nodesi...