From 97b0ce8c96f4d7b42d9f90beec7f824ae49c3089 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 23 Sep 2022 00:49:40 +0300 Subject: removing technical debt, replace convoluted code --- core/utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/utils.py') diff --git a/core/utils.py b/core/utils.py index 521892c..1081e17 100644 --- a/core/utils.py +++ b/core/utils.py @@ -74,6 +74,8 @@ def chaosmonkey(n): def GetListDir(sdir): '''handles url or file, so we can refer to a set of scans (not drawings) on another server returns a list of f (file), ff (file full path), is_dir (bool) + + REPLACE all use of this with Path.rglob() ! ''' res = [ ] if type(sdir) is str and sdir[:7] == "http://": -- cgit v1.2.3