summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlotte Koch <charlotte@magentastripe.com>2024-10-24 13:34:49 -0700
committerCharlotte Koch <charlotte@magentastripe.com>2024-10-24 13:34:49 -0700
commit650c6720d7ef032a42e5021e32c3ef1c960df983 (patch)
treeea2ec7abdb11a994942df52a0c875d6df3610864
parent508f256e67eee78019feac7e3ad22bb5c5363078 (diff)
File.exist? is more portable than File.exists?
-rw-r--r--lib/willora/willora.rb2
1 files changed, 1 insertions, 1 deletions
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