From: brad smith Date: 2012-10-29T03:25:16+09:00 Subject: Re: Passing folder as argument ARGV? Have you tried to add a debug statement inside your loop so you can see what is going on. Also, what is the error code you get. > Btw, is it sufficient to simply pass the name of the folder (which is in > the same directory as the executing file), or is there some syntax? You could use either the full directory name or you could use dot wildcard For example, ./myscript ~/* would give all files under your home directory--nix os On Sun, Oct 28, 2012 at 2:12 PM, Joz Private wrote: > Brad Smith wrote in post #1081684: >> How are you traversing the directory you pass in on the command line ? > > my_files = ARGV > > my_files.each do |file| ... > > Pretty much just like that? > > Btw, is it sufficient to simply pass the name of the folder (which is in > the same directory as the executing file), or is there some syntax? > > -- > Posted via http://www.ruby-forum.com/. >