view treesum.py @ 168:bcc4441cf216

Implement "--print-size" to print file and accumulated directory sizes also. NOTE: - Resulting digests (file and directory) are NOT affected. - Symbolic links are not considered.
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 09 Jan 2025 18:02:46 +0100
parents dfe7bb0579e2
children 48430941c18c
line wrap: on
line source

# -*- coding: utf-8 -*-
# :-
# :Copyright: (c) 2020-2025 Franz Glasner
# :License:   BSD-3-Clause
# :-
r"""Pure Python implementation of a directory tree checksum.

"""

from __future__ import absolute_import

import sys

import cutils.treesum


sys.exit(cutils.treesum.main())