This is happening regardless of how many files the directory contains. As far as I understand this should return the total size of all files under that particular folder.