Mercurial > hgrepos > Python > apps > py-cutils
diff cutils/treesum.py @ 156:481cc9b26861
Calculate "stat()" for directories also in a WalkDirEntry
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 06 Jan 2025 14:38:07 +0100 |
| parents | bf74ce3c968d |
| children | 27d1aaf5fe39 |
line wrap: on
line diff
--- a/cutils/treesum.py Mon Jan 06 13:39:12 2025 +0100 +++ b/cutils/treesum.py Mon Jan 06 14:38:07 2025 +0100 @@ -312,6 +312,8 @@ follow_symlinks=follow_directory_symlinks): dir_dgst = algorithm[0]() for fso in fsobjects: + # print("NNNNNNNN", fso.name, fso.stat, + # "%o (%o)" % (fso.stat.st_mode, stat.S_IMODE(fso.stat.st_mode))) if fso.is_dir: if fso.is_symlink and not follow_directory_symlinks: linktgt = util.fsencode(os.readlink(fso.path))
