Skip to content

Commit

Permalink
Update generate_index.py to show full path of the directory being listed
Browse files Browse the repository at this point in the history
  • Loading branch information
bhargavasana authored Dec 11, 2024
1 parent 2cde4e0 commit b1a5250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def generate_index(dir_path):
files = sorted(os.listdir(dir_path))

# Get the name of the directory for the heading
dir_name = os.path.basename(dir_path)
dir_name = os.path.dirname(dir_path).replace(base_dir, "")

# Create index.html file with a heading and a "Go to Parent Directory" link
index_content = f'<html><body>'
Expand Down

0 comments on commit b1a5250

Please sign in to comment.