Noticed that when $DEBUG=true, any FileUtils.mv call produces two
(rescued) exceptions:
$ ls
sim-1.0.0.zip
$ irb
$DEBUG=true
=> true
FileUtils.mv(‘sim-1.0.0.zip’, ‘sm.zip’)
Exception Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:1420 - No such file or directory - sm.zip ExceptionErrno::ENOENT’ at /usr/lib/ruby/1.8/fileutils.rb:1200 - No
such file or directory - sm.zip
Noticed that when $DEBUG=true, any FileUtils.mv call produces two
(rescued) exceptions:
$ ls
sim-1.0.0.zip
$ irb
$DEBUG=true
=> true
FileUtils.mv(‘sim-1.0.0.zip’, ‘sm.zip’)
Exception Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:1420 - No such file or directory - sm.zip ExceptionErrno::ENOENT’ at /usr/lib/ruby/1.8/fileutils.rb:1200 - No
such file or directory - sm.zip
/usr/lib/ruby/1.8/fileutils.rb:
def fu_same?(a, b) #:nodoc:
if fu_have_st_ino?
st1 = File.stat(a)
1420: st2 = File.stat(b)
def lstat
if dereference?
1200: @lstat ||= File.stat(path())
else @lstat ||= File.lstat(path())
end
end
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.