I would like to know how much disk space a directory is going to consume before I bring it over from the Perforce server. I don't see any way to do this other than getting the files and looking at the size of the directory in a file manager. This, of course, defeats the purpose.
Is there a way to get file size info from Perforce without actually getting the files?
I don't know how I missed this command, but here's how you do it:
p4 sizes -s //depot/directory/...
来源:https://stackoverflow.com/questions/174322/how-do-i-retrieve-the-size-of-a-directory-from-perforce