Skip to content

Auto generates recursively an index.html file indexing folder's content.

License

Notifications You must be signed in to change notification settings

byjokese/Generate-Index-Files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Generate Index Files

Auto generates recursively an index.html file indexing folder's content.

Usage

Download this python script from https://cdn.byjokese.com/python/generate-index.py or from the lastest version in this repository: https://github.com/byjokese/Generate-Index-Files/releases.

  1. Place the script into the root folder (root will be indexed also).
  2. Execute the script.

The generated index.html file will look like:

<!DOCTYPE html>
<html>
<head><title>Index of ./folderName</title></head>
<body>
    <h2>Index of ./folderName</h2>
    <hr>
    <ul>
        <li>
            <a href='../'>../</a>
        </li>
        <li>
            <a href='folder'>folder</a>
        </li>
        <li>
            <a href='folder2'>folder2</a>
        </li>
        <li>
            <a href='file.txt'>file.txt</a>
        </li>
    </ul>
</body>
</html>

Support on Beerpay

Hey dude! Help me out for a couple of 🍻!

Beerpay Beerpay

About

Auto generates recursively an index.html file indexing folder's content.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages