annotate LICENSE.txt @ 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 7b41cd8692fc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
126
dfe7bb0579e2 Extend copyright years to 2025
Franz Glasner <fzglas.hg@dom66.de>
parents: 73
diff changeset
1 Copyright (c) 2020-2025 Franz Glasner
24
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
2
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
3 Redistribution and use in source and binary forms, with or without
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
4 modification, are permitted provided that the following conditions are
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
5 met:
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
6
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
7 1. Redistributions of source code must retain the above copyright
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
8 notice, this list of conditions and the following disclaimer.
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
9
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
10 2. Redistributions in binary form must reproduce the above copyright
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
11 notice, this list of conditions and the following disclaimer in the
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
12 documentation and/or other materials provided with the
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
13 distribution.
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
14
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
15 3. Neither the name of the copyright holder nor the names of its
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
16 contributors may be used to endorse or promote products derived
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
17 from this software without specific prior written permission.
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
18
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
20 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
23 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
24 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
25 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
26 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
27 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
28 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
50ba05dc0eab Add a LICENSE.txt file for the license
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
29 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.