HttpTreeAddPath


int HttpTreeAddPath ( HttpTreeHandle hTree , const char *pPath , const char *pFilter , unsigned uFlags )



 
Inserts a tree page for a file path in a tree

 
hTree is the tree handle or the url for the tree page if HTTP_TREE_CREATENEW was used
 
pPath is the the path for the folder
 
pFilter is the the type filter for the files (i.e. "html;htm;txt")
 
uFlags several flags:

HTTP_TREE_CREATENEW       create new tree with url
HTTP_TREE_EXPANDALL no folder view for the root path
HTTP_TREE_TYPESORT sort file entries by type
HTTP_TREE_SCANROOT insert files from the root folter too
HTTP_TREE_EXPANDALL no folder view for the root path
HTTP_TREE_NOLINES no lines in the tree
HTTP_TREE_NOSUFFIX don't show file suffixes
HTTP_TREE_NOROOTURL don't insert href urls from the root
HTTP_TREE_NOTREEURL don't insert the url of the tree
HTTP_TREE_ADDFOLDER add the scan path as folder
HTTP_TREE_ADDABOVE? insert the scan n levels above
 

Returns 0 if the page was created or an erro number:

1 url allready exist
2 can't create tree memory
3 path not exist
4 url too long
5 path too long
6 tree contains allready a path

 

 

see also:

AzHttp Overview | HttpRegisterTree | HttpTreeAddEntry | HttpTreeBackground | HttpTreeCreate