ZapperDJ / DiogenesList

Multiplatform HTML directory listing creator
52 stars 50 forks source link

Add support for hidden files #6

Open dukechain2333 opened 1 year ago

dukechain2333 commented 1 year ago

The program is now set to hide the hidden files by default. With an additional boolean argument, hidden files will appear in the index again.

Usage

The program only takes two arguments by default (the program will ignore those hidden files, which start with a . in Linux file system), the directory to be indexed and the output file name without the extension, so:

python diogeneslist.py /home/user filelist

Will index the contents of /home/user and save them to filelist.html on the current directory. Simple as that

if you want to show the hidden files in the index, you can use the following command:

python diogeneslist.py /home/user filelist True