How to use htmltree
htmltree version of Feb. 23, 2005
Purpose: generate a HTML file displaying a directory tree
Usage: htmltree -h
htmltree [Options] [-] [dirname] < ...
If a dirname is explicitly given, directory tree from the given directory
down is produced. Otherwise, the tree starts from the current directory.
Include plain files in the map. Without this flag only
the overall directory structure is generated.
Same output as for -f with the addition of the size of individual files
(in B or kB; 1 kB = 1024 B).
If an HTML file has a title specified using the <TITLE>...</TITLE>
tags, show it in place of its name (has effect only with the
-f option, but not when -nc is on)
Generate directory tree only down to level # (# is a positive integer).
Default: all levels.
-d dirB dirE
dirB : the HTML code (opening tags) to be added before a directory name,
dirE : the HTML code (closing tags) to be added after a directory name.
Current default: -d "<img src='d.gif' border=0> " ""
-d "<font color=red>" </font>
-d "<b>" "<\b>"
-d "<img src='fld.gif' border=0><b>" "<\b>"
(fld.gif must be present in the root directory of the generated
map if the BASE HREF tag is created - see below)
file_name : the default (index) file to open (if it exists) when clicking
on a clickable directory item in the generated map.
base_href : the absolute URL of the root directory of the map to
appear in the <BASE HREF= > tag (for use on a server). If not specified
the UNIX path is used (good for local use). If base_href does not
begin with "http", no BASE HREF tag is generated, and the base_href
string is only used as the title of the map.
(To get correct form of the local URL in MS Windows (if -b not
specified), uncomment the definition of the $MSWindows variable
when installing htmltree in MS Windows.)
Nonclickable map is produced (no HTML links to the files/dirs listed).
Any gif files representing directories as in the examples above must
then be in the same directory as the map (also no BASE HREF tag).
The list items are separated by spaces and the whole list must be
enclosed in quotes. Wildcards * and ? can be used anywhere.
All files and directories that match the entries from the skip
list will not appear in the map.
The tree will 'stop' at all directories whose names match the
stop list entries - the contents of these directories will not be
shown. Syntax of the stop list is the same as that of the skip list.
Files of size <= ### bytes will not appear in the map.
-size is the same as -size0 (to skip only zero size files).
Hide symbolic links (do not show they are links).
Quiet: don't report progress on standard error output.
htmltree -l5 -f -i Map.html -skip "*.jpg *.gif ?.t*xt" -stop "h*lp" -hs - -a