Fullscreen
[Show/Hide Right Column]

List files in a directory

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

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



Contributors to this page: lindon5651 points  , Marc Laporte8141 points  , xavi64467 points  and system .
Page last modified on Saturday 03 July, 2010 22:51:06 UTC by lindon5651 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki