Remove root index.html

This commit is contained in:
Sewon Ahn 2020-11-23 20:45:08 +09:00
parent 99736540b9
commit 98b5ad9c55
2 changed files with 7 additions and 11 deletions

View file

@ -217,7 +217,7 @@ def distribusify(args, directory, freg): # noqa
html.insert(0, div(args, 'dir', 'dir', a, 'folder')) html.insert(0, div(args, 'dir', 'dir', a, 'folder'))
''' '''
if not directory == root:
index = os.path.join(root, 'index.html') index = os.path.join(root, 'index.html')
if os.path.exists(index): if os.path.exists(index):
if check_distribusi_index(args, index): if check_distribusi_index(args, index):

View file

@ -98,12 +98,8 @@ class Fragments:
for root, dirs, files in os.walk(directory): for root, dirs, files in os.walk(directory):
self.add_ignore(root) self.add_ignore(root)
print(root)
arr = root.split("/") arr = root.split("/")
print(arr[2])
if arr[2] in self.ignore: if arr[2] in self.ignore:
pass # ignore 폴더 처리 pass # ignore 폴더 처리
else: else: