Re: [Rails] directory listing to database

2018-10-24 Thread Colin Law
You could use one of the shell commands [1] which will give you back the directory listing direct to your code. No need for an intermediate file. However, if you google for ruby directory listing it will show you much better ways. Usually google will be much quicker for asking such questions than

[Rails] directory listing to database

2018-10-24 Thread fugee ohu
I wanna copy directory listings from removable media to a database so then I'll know what files are on what removable disk I'm thinking at the system level i have to list the directory to a file and then open the file for reading in ruby and then use the split function to parse each line as I

[Rails] directory listing to database

2018-10-24 Thread fugee ohu
I wanna sto -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrail