# File lib/fastcst/changeset.rb, line 538 538: def test(indata, dir) 539: begin 540: Dir.chdir dir do 541: return false unless File.exist?(@from_path) 542: 543: if File.exist?(File.dirname(@to_path)) 544: FileUtils::DryRun.mv @from_path, @to_path, :force => true 545: end 546: end 547: rescue 548: UI.failure :move, "#{$!}" 549: skip(indata) 550: return false 551: end 552: 553: return true 554: end