diff cutils/util/walk.py @ 155:bf74ce3c968d

When computing digests use the order imposed by names alone. No different loops for dirs and nondirs.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 06 Jan 2025 13:39:12 +0100
parents c7df81fb84b7
children 481cc9b26861
line wrap: on
line diff
--- a/cutils/util/walk.py	Mon Jan 06 13:38:09 2025 +0100
+++ b/cutils/util/walk.py	Mon Jan 06 13:39:12 2025 +0100
@@ -130,11 +130,14 @@
         - the `root` is never part of the returned data
         - the returned directory in "top" is not a string form but a list of
           individual path segments
-        - there is only one yields list
+        - there is only one yielded list
 
           * contains :class:`WalkDirEntry`
           * sorted by its fsname
 
+          The caller can easily get the old dirs and nondirs by filtering
+          the yielded list using "entry.is_dir".
+
         - recurse into sub-directories first ("topdown=False")
         - sort consistently all yielded lists by the filesystem encoding