Remove root index.html
This commit is contained in:
parent
99736540b9
commit
98b5ad9c55
2 changed files with 7 additions and 11 deletions
|
|
@ -217,13 +217,13 @@ def distribusify(args, directory, freg): # noqa
|
|||
html.insert(0, div(args, 'dir', 'dir', a, 'folder'))
|
||||
'''
|
||||
|
||||
|
||||
index = os.path.join(root, 'index.html')
|
||||
if os.path.exists(index):
|
||||
if check_distribusi_index(args, index):
|
||||
write_index(args,index,html, html_head, html_footer)
|
||||
elif not os.path.exists(index):
|
||||
write_index(args,index,html, html_head, html_footer)
|
||||
if not directory == root:
|
||||
index = os.path.join(root, 'index.html')
|
||||
if os.path.exists(index):
|
||||
if check_distribusi_index(args, index):
|
||||
write_index(args,index,html, html_head, html_footer)
|
||||
elif not os.path.exists(index):
|
||||
write_index(args,index,html, html_head, html_footer)
|
||||
|
||||
if args.remove_index:
|
||||
index = os.path.join(root, 'index.html')
|
||||
|
|
|
|||
|
|
@ -98,12 +98,8 @@ class Fragments:
|
|||
for root, dirs, files in os.walk(directory):
|
||||
self.add_ignore(root)
|
||||
|
||||
print(root)
|
||||
|
||||
arr = root.split("/")
|
||||
|
||||
print(arr[2])
|
||||
|
||||
if arr[2] in self.ignore:
|
||||
pass # ignore 폴더 처리
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue