[Show/Hide Right Column]

List files in a directory
Print
Tags: plugin

Plugin Lsdir

This Wiki Plugin lists files in a directory.

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

{LSDIR(dir=>/lib/, urlprefix=>http://localhost/, sort=>name, filter=>.php, limit=>5)}


Contributors to this page: lindon2331 points  , xavi36278 points  , system and Marc Laporte5511 points  .
Page last modified on Saturday 03 July, 2010 22:51:06 UTC by lindon2331 points .

Find by Page Name

Exact match

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki documentation and should correspond to development keywords (bug reports and feature requests):