Data Structures & Algorithms in C++
Goodrich, Tamassia, Mount and Goldwasser
|
#include <cstdlib>
#include <filesystem>
#include <iostream>
Functions | |
long | disk_usage (directory_entry entry) |
int | main (int argc, char *argv[]) |
long disk_usage | ( | directory_entry | entry | ) |
Calculates the total disk usage (in bytes) of the portion of the file system rooted at the given entry, while printing a summary akin to the standard 'du' Unix tool.
a | directory_entry denoting the relevant portion of the file system |