Change deprecated File.exists?/Dir.exists? to File.exist?/Dir.exist? (#6893)

* Change `File.exists?` to `File.exist?`

* Change `Dir.exists?` to `Dir.exist?`
This commit is contained in:
supechicken
2022-03-22 01:24:13 +08:00
committed by GitHub
parent a0bcbd5842
commit 944607d5ac
42 changed files with 64 additions and 64 deletions

View File

@@ -43,7 +43,7 @@ class Stellarium < Package
def self.remove
config_dir = "#{HOME}/.stellarium"
if Dir.exists? config_dir
if Dir.exist? config_dir
print "Would you like to remove the config directory #{config_dir}? [y/N] "
case STDIN.getc
when "y", "Y"