From 650c6720d7ef032a42e5021e32c3ef1c960df983 Mon Sep 17 00:00:00 2001 From: Charlotte Koch Date: Thu, 24 Oct 2024 13:34:49 -0700 Subject: File.exist? is more portable than File.exists? --- lib/willora/willora.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/willora/willora.rb b/lib/willora/willora.rb index e13144e..1867fbb 100644 --- a/lib/willora/willora.rb +++ b/lib/willora/willora.rb @@ -70,7 +70,7 @@ class Willora realdestbase = File.join(@opts[:destination], @opts[:nickname]) - if File.exists?(realdestbase) + if File.exist?(realdestbase) @errormsg = "Directory already exists: #{realdestbase.inspect}" return 1 end -- cgit v1.2.3