0

I am trying to run a ruby script to rename some files but I get the following error:

Eccleshall$ ruby rename.rb
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- ftools (LoadError)
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from rename.rb:45:in `<main>'

Thanks for the help.

2
  • Hey, Jack, you've got an error here! Commented Aug 9, 2011 at 22:14
  • Can you post the script? Commented Aug 9, 2011 at 22:15

1 Answer 1

3

Change to script to say:

require "fileutils"

instead of

require "ftools"

ftools has been deprecated.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.