File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def self.load_appium_txt(opts = {})
79
79
toml = File . expand_path File . join parent_dir , 'appium.txt'
80
80
Appium ::Logger . info "appium.txt path: #{ toml } " if verbose
81
81
82
- toml_exists = File . exists ? toml
82
+ toml_exists = File . exist ? toml
83
83
Appium ::Logger . info "Exists? #{ toml_exists } " if verbose
84
84
85
85
raise "toml doesn't exist #{ toml } " unless toml_exists
@@ -103,11 +103,11 @@ def self.load_appium_txt(opts = {})
103
103
r = r . is_a? ( Array ) ? r : [ r ]
104
104
# ensure files are absolute
105
105
r . map! do |file |
106
- file = File . exists ?( file ) ? file :
106
+ file = File . exist ?( file ) ? file :
107
107
File . join ( parent_dir , file )
108
108
file = File . expand_path file
109
109
110
- File . exists ?( file ) ? file : nil
110
+ File . exist ?( file ) ? file : nil
111
111
end
112
112
r . compact! # remove nils
113
113
You can’t perform that action at this time.
0 commit comments