File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def self.load_appium_txt(opts = {})
7979 toml = File . expand_path File . join parent_dir , 'appium.txt'
8080 Appium ::Logger . info "appium.txt path: #{ toml } " if verbose
8181
82- toml_exists = File . exists ? toml
82+ toml_exists = File . exist ? toml
8383 Appium ::Logger . info "Exists? #{ toml_exists } " if verbose
8484
8585 raise "toml doesn't exist #{ toml } " unless toml_exists
@@ -103,11 +103,11 @@ def self.load_appium_txt(opts = {})
103103 r = r . is_a? ( Array ) ? r : [ r ]
104104 # ensure files are absolute
105105 r . map! do |file |
106- file = File . exists ?( file ) ? file :
106+ file = File . exist ?( file ) ? file :
107107 File . join ( parent_dir , file )
108108 file = File . expand_path file
109109
110- File . exists ?( file ) ? file : nil
110+ File . exist ?( file ) ? file : nil
111111 end
112112 r . compact! # remove nils
113113
You can’t perform that action at this time.
0 commit comments