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?
From stackoverflow
raven
-
raven : I can get the size of a file that way, but I guess I was really more interested in getting the size of a directory (I'll edit my question). Something like "p4 dstat".Graham Lee : total = 0 foreach file in mydir do p4 fstat file total += size of file done :-)From Graham Lee
-
I don't know how I missed this command, but here's how you do it:
p4 sizes -s //depot/directory/...
From raven
0 comments:
Post a Comment