# File lib/fastcst/changeset.rb, line 480 480: def test(indata, dir) 481: begin 482: Dir.chdir dir do 483: # the path exists, so we can test this one 484: if File.exist?(File.dirname(@path)) 485: FileUtils::DryRun.touch(@path) 486: end 487: end 488: rescue 489: UI.failure :create, "Failed to create file: #$!" 490: skip(indata) # skip any data we need 491: return false 492: end 493: 494: return true 495: end