summaryrefslogtreecommitdiffstats
path: root/core/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/utils.py')
-rw-r--r--core/utils.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/core/utils.py b/core/utils.py
index 1081e17..c7f71fa 100644
--- a/core/utils.py
+++ b/core/utils.py
@@ -70,27 +70,6 @@ def chaosmonkey(n):
# print("CHAOS strikes !", file=sys.stderr)
return True
-#
-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://":
- # s = urllib.request.urlopen(sdir)
- message = f"! Requesting loading from http:// NOT IMPLEMENTED. [{sdir}]"
- print(message)
- DataIssue.objects.create(parser='Drawings', message=message)
- sdir[:7] = ""
-
- for f in os.listdir(sdir):
- if f[0] != ".":
- ff = os.path.join(sdir, f)
- res.append((f, ff, os.path.isdir(ff)))
- return res
-
def only_commit(fname, message):
'''Only used to commit a survex file edited and saved in view/survex.py
'''