P
Poster Matt
Hi Pros,
Is there a command to get the total size of a directory, all the files in
it, the size of all the files in its subdirectories, and so on down any
further levels of subdirectories? In other words given a directory path, the
total size of every file & subdirectory from there on down the directory tree?
Maybe I've just missed it but I can't seem to find a command to do that for
me in System.IO.
Do I really have to write recursive code to traverse through the whole tree
to get the total size, when you can get that from the Window's OS with a
couple of mouse clicks (right-Click directory name, click on 'properties'
and it'll tell you).
Thanks.
Is there a command to get the total size of a directory, all the files in
it, the size of all the files in its subdirectories, and so on down any
further levels of subdirectories? In other words given a directory path, the
total size of every file & subdirectory from there on down the directory tree?
Maybe I've just missed it but I can't seem to find a command to do that for
me in System.IO.
Do I really have to write recursive code to traverse through the whole tree
to get the total size, when you can get that from the Window's OS with a
couple of mouse clicks (right-Click directory name, click on 'properties'
and it'll tell you).
Thanks.