Mercurial > hgrepos > Python > apps > py-cutils
view genpwd.py @ 277:9676ecd32a07
treesum: FIX: Proper error handling.
Many errors are not detected at scandir times but then symlinks is to be
followed or the content of a file is to be read.
Note also that the size of a file can be available (because its directory
is readable) but the content of the file is not.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 21 Feb 2025 16:51:03 +0100 |
| parents | 6d8443878a00 |
| children | 48430941c18c |
line wrap: on
line source
# -*- coding: utf-8 -*- # :- # :Copyright: (c) 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.genpwd sys.exit(cutils.genpwd.main())
