Total number of files
AnsweredHi
How do we get hold of total number of files on the Box server installation?
I checked out the Box api documentation, seems like one would need to recursively go through all the folders for each of the users to fetch files under the folders.
Consider an enterprise installation where there are tens of thousands of users, the above method will prove to be expensive in terms of time taken to process.
-
Unfortunately, we don't have an API endpoint that would provide the total file count across a Box Enterprise in one API call. As you mentioned, to get the total file count programmatically you would have to call the Get Folder Items endpoint recursively.
An alternative approach to using the API is getting this information from the Box Admin console. You can get the total file count by running Folders and Files report in the Box Admin console. Running that report generates a spreadsheet with a list of all the folders and files across a Box Enterprise.
Please sign in to leave a comment.
Comments
4 comments