diff --git a/generate_index.py b/generate_index.py index 1400c4a..7429b01 100644 --- a/generate_index.py +++ b/generate_index.py @@ -14,9 +14,12 @@ def generate_index(dir_path): # Skip if the directory is empty if not files: return + + # Get the name of the directory for the heading + dir_name = os.path.basename(dir_path) # Create index.html file - index_content = '

Directory Listing