Listing files in a directory with Rails
In a recent application I am building I needed to pull file names and directory names from a local directory. I searched all over the net for this and found nothing. After reviewing a few of rails built in functions I came across Dir.glob(). If you feed this method a path to a directory it will then come back with an array of the names and directories listed.
Visit publisher site: Listing files in a directory with RailsListing Details
- Version:
- n/a
- Filed in:
-
Scripts / Ruby on Rails / Tutorials & Tips
- Submitted on:
- Last Updated:
- Feb 25, 2008
- Publisher:
- Greg Winn Other listings by this publisher
License & Pricing Information
User Reviews
Be the first to review this listing!Not yet reviewed by any member.... You can be the FIRST one to write a review for Listing files in a directory with Rails