std::vector<std::string> dirents = get_dir(path, false);
BOOST_FOREACH(const std::string &filename, dirents)
{
- // Delete subdir or file.
+ // calculate size of subdir or file
long long rtn = du(path + "/" + filename, error);
if (rtn == -1)
return -1;