On 01/16/2014 10:37 AM, Peter Bailey wrote:
> Hi,
> I'm going out of my mind trying to figure this out. I keep getting the
> following error.
>
> E:/Apps/Ruby200-x64/lib/ruby/2.0.0/fileutils.rb:1563:in `path': no
> implicit conversion of nil into String (TypeError)
>    from E:/Apps/Ruby200-x64/lib/ruby/2.0.0/fileutils.rb:1563:in
> `fu_each_src_dest0'
>    from E:/Apps/Ruby200-x64/lib/ruby/2.0.0/fileutils.rb:1549:in
> `fu_each_src_dest'
>    from E:/Apps/Ruby200-x64/lib/ruby/2.0.0/fileutils.rb:508:in `mv'
>    from
> E:/apps/scripts/ruby/asura-non/FASB/process_FASB_gif_singles.rb:13:in
> `<main>'
>
> This is what line 13 looks like:
>
> FileUtils.mv(giffile, "F:/workflows/grafix/asura-non/FASB/scratch_gif")
>
> I used to have "giffile = giffile.chomp" right above line 13, but, I
> took it out. I can't seem to find any consistency with regard to
> "chomp."
>
> Any help would be appreciated.
>
> Thank you,
> Peter
>

Looks like giffile is nil. How it got to be nil no one can say without 
seeing more of the code.

$ ruby -rfileutils -e 'giffile = nil;  FileUtils.mv(giffile, 
"F:/workflows/grafix/asura-non/FASB/scratch_gif")'
/home/justin/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/fileutils.rb:1585:in 
`path': no implicit conversion of nil into String (TypeError)
	from 
/home/justin/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/fileutils.rb:1585:in 
`fu_each_src_dest0'
	from 
/home/justin/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/fileutils.rb:1571:in 
`fu_each_src_dest'
	from 
/home/justin/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/fileutils.rb:514:in `mv'
	from -e:1:in `<main>'

-Justin