For others who may need to perform some file manipulations of their own, I
found little tidbits on file manipulation here and there but got the most
out of chapter 6 of Ruby Cookbook by Lucas Carlson & Leonard Richardson.
 
ISBN-10: 0-596-52369-6
ISBN-13: 978-0-59-652369-5

I was able to finagle my way to:
* pull sub-dir names from my initial working dir and populate a dropdown.
* change the working dir on the fly based upon which sub-dir was chosen
* list out files only (no ³.² ³..² or other dirs) in current working dir
with file sizes.  (also sub-dir files like: /dir1/dir2/dir3/testfile.rb)
* assign classification of files based on file size and manipulate as needed

I am working on the actual manipulation part, but now that the main headache
of pulling in the dirs vs. files is working the rest should be cake.  I was
happy to find that Rails allows me to easily see files outside the structure
of Rails itself.  All of the manipulation will be done via protected
actions, and the files are all pulled in and self populated. Ie.can¹t type
in a guessed file name and try to do anything to it.  Can only see what¹s
already in the dir.

-=Randy

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to