mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-14 22:58:20 +00:00
Updating all sources: add recursive=True to the call to glob()
This commit is contained in:
1 parent
c022c2b230
commit
ac2a06f74b
1 file changed
+1
-1
+1
-1
@@ -245,7 +245,7 @@ def matchesExclusions(strippedRule):
|
||||
# Update Logic
|
||||
def updateAllSources():
|
||||
# Update all hosts files regardless of folder depth
|
||||
allsources = glob('*/**/' + settings["sourcedatafilename"])
|
||||
allsources = glob('*/**/' + settings["sourcedatafilename"], recursive=True)
|
||||
for source in allsources:
|
||||
updateFile = open(source, "r")
|
||||
updateData = json.load(updateFile)
|
||||
|
||||
Reference in new issue
Block a user