I assume the restriction is file system related. It's probably not always cheap to calculate the full size of a directory, especially if it's heavily nested.
Windows will tell you the size of a dir in the right click -> properties menu, but it takes a while to calculate for large/complicated directories.