Plugin Lsdir
This Wiki Plugin lists files in a directory.Table of contents
Usage and Parameters
To use this plugin in a wiki page, use the syntax:{LSDIR(dir=>/dirpath/, urlprefix=>http://localhost/, sort=>name, filter=>.ext, limit=>5)}{LSDIR}| Parameter | Accepted values | Default | Effect | Required? | Since |
|---|---|---|---|---|---|
| dir | directory path | none | The directory path containing the files to be listed | y | |
| urlprefix | first part of the url up to domain name | none | n | ||
| sort | Sort list by: | ||||
| name | yes | file name | n | ||
| atime | last time file was accessed | n | |||
| ctime | last time file metadata was changed | n | |||
| mtime | last time file was modified | n | |||
| size | size of file | n | |||
| sortmode | asc or desc | asc | sort in ascending or descending order | n | |
| filter | text | none | filter file name by this text (example: .php) | n | |
| limit | number | none | limit list to this many items | n |
Example
{CODE(wrap=>1)}{LSDIR(dir=>/lib/, urlprefix=>http://localhost/, sort=>name, filter=>.php, limit=>5)}
{CODE}
