ASP List Directory 1.0
There have been occasions where I have needed to just dump some files in a hidden directory of a website for internal use or to preview to a client. I don’t want to create a whole preview site for just this instance, and I want to keep directory browsing off for the rest of the site.
ASP offers some simple tools to list all the files in a specific folder and any sub-folders. The following code wasn’t written by me, credit goes to Mike Hall. I did however make some modifications to his original code. He had it set up in such a way as that you needed to manually enter which folders would be listed. I wanted something simpler. Something you could just drop in a folder on your site and it would automatically load and list all the files. I also didn’t want the index file to appear in this list.
Here is an example of the code in action.
View the source code!
Download the source code! [ 1k ]
Check out the updated version as well.
Tags: ASP | code | Code | copy | Director | Freebies | head | html | ink | red | review | Tutorials | Web | website
Related posts

