Implement du shell command #277
NOTE: I'd like to do this as an exercise with my class, so please don't fix this :) Assigning to myself.
It would be helpful to know how much space a filesystem is occupying in storage. Unix has a way to do this already with
The code to do this is similar to
My initial proposal is as follows:
Obtaining the total usage for the filesystem would be done with
When called on a directory path, the
Fixing this bug requires at least the following:
It is suggested that students work "top down" in the order described above (docs > tests > impl).
Yeah, good points. It think this is OK (metadata is of unknown, but mostly constant size) since