2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 01:47:35 +00:00

removing technical debt, replace convoluted code

This commit is contained in:
Philip Sargent
2022-09-23 00:49:40 +03:00
parent aa20692ad6
commit 97b0ce8c96
2 changed files with 64 additions and 41 deletions

View File

@@ -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://":