From: Justin Collins Date: 2008-02-09T11:45:01+09:00 Subject: Re: trouble with FileUtils.rm() -- Invalid arguement error an an wrote: > Justin Collins wrote: > >> an an wrote: >> >>>>> entry...is there anyway to have them expanded >>>>> >>> Dir.glob("C:\") >>> puts Dir.glob("C:\") >>> >>> neither of which print anything >>> >>> >>> >> I forgot the asterisk: >> >> FileUtils.rm Dir.glob("c:\\myDir\\delete\\*") >> >> >> -Justin >> > > > still no luck...here is exactly what I have typed into irb: > > irb(main):003:1' Dir.glob('c:\') > irb(main):004:1' Dir.glob('c:\drivers\') > irb(main):005:1' Dir.glob("c:\drivers\") > irb(main):006:1' Dir.glob("c:\drivers\*") > irb(main):007:1' puts Dir.glob("c:\drivers\*") > irb(main):008:1' puts Dir.glob("c:\\drivers\\*") > irb(main):009:1' Dir.glob("c:\\drivers\\*") > irb(main):010:1' Dir.glob('c:\\drivers\\*') > irb(main):011:1' Dir.glob("c:\\*") > irb(main):012:1' print Dir.glob("C:\\*") > > none of these commands returned anything....any idea why? > Well...it _might_ be a Windows thing, but what did you type in before those lines? You seem to be within a quote. Notice your prompt: irb(main):003:1' ^ Should be a > (greater than sign) For instance: irb(main):001:0> ' <- I just started a string irb(main):002:0' <- Now the prompt is different irb(main):003:0' Until I close the string, it will remain that way irb(main):004:0' here I close it -> ' => " <- I just started a string\n<- Now the prompt is different\nUntil I close the string, it will remain that way\nhere I close it -> " irb(main):005:0> puts "Now we're back to normal" Now we're back to normal => nil -Justin