FS Browser Plugin
Summary
A plugin to enable browsing of a filesystem hierarchy.
Caveats
WARNING! This plugin gives users the ability to
directly browse files on your Web server. The plugin is hard-coded to require users to specify paths within the $Foswiki::cfg{PubUrlPath} hierarchy, but users will be able to see
every file in that hierarchy that's not a dot-file.
This plugin is currently only designed to work on filesystems that use Unix-style file separators (i.e. '/').
Description
The FSBrowserPlugin provides the
FSBROWSER macro. This macro can be used to create a nested Foswiki-style list of any part of the filesystem hierarchy under $Foswiki::cfg{PubUrlPath}. The resulting output can then be used by e.g. TreeBrowserPlugin to produce a nicely-formatted filesystem tree.
This plugin requires that the Web server root be specified in $Foswiki::cfg{Plugins}{FSBrowserPlugin}{ServerRoot}; it defaults to '/var/www'.
Example usage:
%FSBROWSER{"/Files" maxdepth="3"}%
Info