How do I retrieve the size of a directory from Perforce?

情到浓时终转凉″ 提交于 2019-12-04 17:26:18

问题


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?


回答1:


I don't know how I missed this command, but here's how you do it:

p4 sizes -s //depot/directory/...




回答2:


p4 fstat



来源:https://stackoverflow.com/questions/174322/how-do-i-retrieve-the-size-of-a-directory-from-perforce

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!