changeset 195:e5f6f4db9157

Use the imported "scandir()" implementation instead always the "os.scandir"
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 16 Jan 2025 19:31:57 +0100
parents 938488f87b62
children 0f4febf646f5
files cutils/util/walk.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cutils/util/walk.py	Thu Jan 16 19:05:17 2025 +0100
+++ b/cutils/util/walk.py	Thu Jan 16 19:31:57 2025 +0100
@@ -157,7 +157,7 @@
 
         def __init__(self, path):
             super(ScanDir, self).__init__()
-            self._scandir_it = os.scandir(path)
+            self._scandir_it = scandir(path)
 
         def __iter__(self):
             return self