mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-18 07:07:10 +00:00
Just removing dud whitespace
This commit is contained in:
@@ -15,7 +15,7 @@ def listdir(*path):
|
||||
for p in os.listdir(root):
|
||||
if os.path.isdir(os.path.join(root, p)):
|
||||
l += p + "/\n"
|
||||
|
||||
|
||||
elif os.path.isfile(os.path.join(root, p)):
|
||||
l += p + "\n"
|
||||
#Ignore non-files and non-directories
|
||||
@@ -28,7 +28,7 @@ def listdir(*path):
|
||||
c = c.replace("#", "%23")
|
||||
print("FILE: ", settings.FILES + "listdir/" + c)
|
||||
return urllib.urlopen(settings.FILES + "listdir/" + c).read()
|
||||
|
||||
|
||||
def dirsAsList(*path):
|
||||
return [d for d in listdir(*path).split("\n") if len(d) > 0 and d[-1] == "/"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user