Mercurial > hgrepos > Python > apps > py-cutils
view cutils/__init__.py @ 177:089c40240061
Add an alternate implementation for generating directory tree digests:
- Do not use something like os.walk() but use os.scandir() directly.
- Recursively generate the subdirectory digests only when needed and in
the right order.
This fixes that the order of subdirectories in the output did not
match the application order of its directory digests.
The new implementation also should make filtering (that will be
implemented later) easier.
NOTE: The tree digests of the old and the new implementation are identical.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 11 Jan 2025 17:41:28 +0100 |
| parents | dfe7bb0579e2 |
| children | 798c79420f65 |
line wrap: on
line source
# -*- coding: utf-8 -*- r""" :Author: Franz Glasner :Copyright: (c) 2020-2025 Franz Glasner :License: BSD 3-Clause "New" or "Revised" License. See :ref:`LICENSE.txt <license>` for details. If you cannot find LICENSE.txt see <https://opensource.org/licenses/BSD-3-Clause> :ID: @(#) $HGid$ """ __version__ = "0.4.4" __revision__ = "|VCSRevision|" __date__ = "|VCSJustDate|" __all__ = ["__version__"]
