Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #2436

Re: uninitialized constant Fileutils (NameError)?

From Stefano Crocco <stefano.crocco@alice.it>
Newsgroups comp.lang.ruby
Subject Re: uninitialized constant Fileutils (NameError)?
Date 2011-04-07 04:01 -0500
Organization Service de news de lacave.net
Message-ID <4D498EF3056E7519@smtp209.alice.it> (permalink)
References <41fe58b4208fd049b1d7adbf26e3eca3@ruby-forum.com>

Show all headers | View raw


On Thursday 07 April 2011 17:45:43 Thomas Luedeke wrote:
> I do not understand what is going on here - I've done this a multitude
> of times and all of a sudden it doesn't work any more.
> 
> I've got a "require 'fileutils'" at the beginning of my script, but when
> I use the file copy command "Fileutils.cp" it just keeps stopping with
> the uninitialized constant error.
> 
> What potential problem is going on here?  I'm using Ruby 1.9.

It's FileUtils (note the capital U), not Fileutils.

Stefano

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

uninitialized constant Fileutils (NameError)? Thomas Luedeke <tluedeke@excite.com> - 2011-04-07 03:45 -0500
  Re: uninitialized constant Fileutils (NameError)? Stefano Crocco <stefano.crocco@alice.it> - 2011-04-07 04:01 -0500
  Re: uninitialized constant Fileutils (NameError)? Haruka YAGNI <hyagni@gmail.com> - 2011-04-07 03:58 -0500

csiph-web