swatting another listdir
parent
52496aaf51
commit
5f4207d976
|
@ -405,7 +405,10 @@ def www_neighbors():
|
||||||
url = config.LIVE+user+"/"+userRC["publish dir"]
|
url = config.LIVE+user+"/"+userRC["publish dir"]
|
||||||
|
|
||||||
lastfile = ""
|
lastfile = ""
|
||||||
|
try:
|
||||||
files = os.listdir(os.path.join("/home", user, ".ttbp", "entries"))
|
files = os.listdir(os.path.join("/home", user, ".ttbp", "entries"))
|
||||||
|
except OSError:
|
||||||
|
files = []
|
||||||
files.sort()
|
files.sort()
|
||||||
for filename in files:
|
for filename in files:
|
||||||
if valid(filename):
|
if valid(filename):
|
||||||
|
|
Loading…
Reference in New Issue