How to calculate Files,folder count in document library and datalist with size using java api?

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

How to calculate Files,folder count in document library and datalist with size using java api?

I am trying to calculate the total folder and file count along with total fize size(folders+files in it) in a document library using java. Also, need to calculate the count of total records in a given datalist. I found a public api which returns the folder,file count with size of items in it but I am not able to hit the uri with java code due to authentication issue.

The URL is - /alfresco/service/slingshot/doclib/doclist/{type}/site/{site}/{container}/{path}

Is there any other way (e.g. a java public api) that can be used to address this kind of requirement.

1 Reply
jljwoznica
Senior Member

Re: How to calculate Files,folder count in document library and datalist with size using java api?