Extension talk:FileSystemListing

This looks really cool, can I see an example?

Installation Instructions
How do I install this extension?
 * Open some file editor of your choice, then copy the code and paste on it. Then save it in your extension directory under filename Filedir.php or whatever you choose. Edit LocalSettings.php and add this line below.

require_once( 'extensions/Filedir.php' );
 * Create any page and type:


 * Voila... the files & directories under /var/www/html/downloads are now displayed. --203.130.233.55 14:10, 29 July 2006 (UTC) by semut

UNC Addresses
I'm looking at your code and (correct me if I'm wrong) it doesn't look like it supports UNC, or even Windows at all for that matter, though that wouldn't be hard to change. *nix style paths are ok but the vast majority of the real world still uses Windows and Windows Filesharing.

--193.24.32.37 13:52, 5 January 2007 (UTC) For me it works with windows - try 

Sub directories
Neat script but what about listing subdirectories ? Or the possibility of filtering the list ?

Security Concern
A useful extension. However, it seems to me that this allows any user to display the contents of any directory in any file system visible to the webserver. Even though this does not imply that any file can be downloaded, this might be undesired. RV1971 14:36, 6 June 2007 (UTC)