troggle-unchained/core/fileAbstraction.py

16 lines
437 B
Python
Raw Normal View History

# import troggle.settings as settings
# import os
# import urllib.request, urllib.parse, urllib.error
# from functools import reduce
# All unused, but kept pending deletion
# def urljoin(x, y): return x + "/" + y
# def dirsAsList(*path):
# return [d for d in listdir(*path).split("\n") if len(d) > 0 and d[-1] == "/"]
# def filesAsList(*path):
# return [d for d in listdir(*path).split("\n") if len(d) > 0 and d[-1] != "/"]