diff options
| author | Charlotte Koch <charlotte@magentastripe.com> | 2024-10-24 13:34:49 -0700 |
|---|---|---|
| committer | Charlotte Koch <charlotte@magentastripe.com> | 2024-10-24 13:34:49 -0700 |
| commit | 650c6720d7ef032a42e5021e32c3ef1c960df983 (patch) | |
| tree | ea2ec7abdb11a994942df52a0c875d6df3610864 | |
| parent | 508f256e67eee78019feac7e3ad22bb5c5363078 (diff) | |
File.exist? is more portable than File.exists?
| -rw-r--r-- | lib/willora/willora.rb | 2 |
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 |
