|
|
|
@ -71,8 +71,8 @@ def main():
|
|
|
|
|
wikidir = ''
|
|
|
|
|
for f in os.listdir('.'):
|
|
|
|
|
# Does not find numbered wikidumps not verify directories
|
|
|
|
|
if d.startswith(prefix) and d.endswith('wikidump'):
|
|
|
|
|
wikidir = d
|
|
|
|
|
if f.startswith(prefix) and f.endswith('wikidump'):
|
|
|
|
|
wikidir = f
|
|
|
|
|
started = True
|
|
|
|
|
break #stop searching, dot not explore subdirectories
|
|
|
|
|
|
|
|
|
@ -89,8 +89,8 @@ def main():
|
|
|
|
|
#save wikidir now
|
|
|
|
|
for f in os.listdir('.'):
|
|
|
|
|
# Does not find numbered wikidumps not verify directories
|
|
|
|
|
if d.startswith(prefix) and d.endswith('wikidump'):
|
|
|
|
|
wikidir = d
|
|
|
|
|
if f.startswith(prefix) and f.endswith('wikidump'):
|
|
|
|
|
wikidir = f
|
|
|
|
|
break #stop searching, dot not explore subdirectories
|
|
|
|
|
|
|
|
|
|
prefix = wikidir.split('-wikidump')[0]
|
|
|
|
|