Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html page list out content of folder

Generate index.html file for specific folders

tree

tree is a minimalistic utility that is available on most unix-like
systems (ubuntu/debian: sudo apt install tree,
mac: brew install tree, windows: zip). 
tree can generate plain text, XML, JSON or HTML output.

Generate an HTML directory index one level deep:

tree -H '.' -L 1 --noreport --charset utf-8 -o index.html

Only include specific file types that match a glob pattern, e.g. *.zip files:

tree -H '.' -L 1 --noreport --charset utf-8 -P "*.zip" -o index.html

The argument to -H is what will be used as a base href, 
so you can pass either a relative path such as . or an absolute path 
from the web root, such as /files. 

-L 1 limits the listing to the current directory only.
Comment

PREVIOUS NEXT
Code Example
Html :: html color tomato hex 
Html :: pass text from input field to javascript function 
Html :: center unordered list html 
Html :: bootstrap radio 
Html :: html align right 
Html :: what file extension sould you use to save a website 
Html :: command button prevent / skip validation primefaces 
Html :: button to return to previous page html 
Html :: move table tfoot at top 
Html :: tailwind image text 
Html :: tick html code 
Html :: html5 video player 
Html :: see line from table html 
Html :: html5 iframe youtube loop 
Html :: html auto redirect 
Html :: google logo link 
Html :: form multipart/form-data 
Html :: bootstrap table combine columns 
Html :: getproductpricehtml magento 2 
Html :: tab image code 
Html :: data list in input tag 
Html :: html enlace 
Html :: twig format currency 
Html :: html add a delay to link 
Html :: stop website from overscrolling 
Html :: how to link submit button to another page in html 
Html :: Responsive container centered 
Html :: laravel hide html tags 
Html :: what to use for double quotes in html 
Html :: how to add links to html 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =