def METHOD_NAME(self, path: path_type) -> int:
    """
    Compute bytes used by all contents under indicated path in file tree
    Parameters
    ----------
    path : string
        Can be a file path or directory
    Returns
    -------
    usage : int
    """
    path = stringify_path(path)
    path_info = self.stat(path)
    if path_info["type"] == "file":
        return path_info["size"]
    total = 0
    for root, directories, files in self.walk(path):
        for child_path in files:
            abspath = self.path_join(root, child_path)
            total += self.stat(abspath)["size"]
    return total