How to count the number of files in a repository folder

'How Do I...' and 'How to...' Guide to Stash

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

To count the number of files of a repository folder, access its folder and create a file with this content:

# count inodes for each directory
for i in $LIST; do
echo $i
find $i -printf "%i\n" | sort -u | wc -l

This will count how many files are content in each folder in the repository.



Last modified on Sep 25, 2013

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.