Skip to content

Commit

Permalink
Change to File.exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
spahrenk committed Jul 10, 2024
1 parent 6135c67 commit 31fa7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/run-kiva.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def run_case(exe_path, in_file, weather_file, output_path)
success = run_case(KIVA_PATH, INPUT_FILE, WEATHER_FILE, OUTPUT_FILE)
f = lambda do |dir|
puts("Evaluating contents of #{dir}")
if File.exists?(dir)
if File.exist?(dir)
puts("- contents:\n #{Dir[File.join(dir, '*')]}")
else
puts("- #{dir} doesn't exist...")
Expand Down

0 comments on commit 31fa7eb

Please sign in to comment.