Skip to content

Commit 7b83b85

Browse files
Only return files that exist
1 parent 1f0428d commit 7b83b85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/appium_lib/driver.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ def update data, *args
6767
r.map! do |file|
6868
file = file.include?(File::Separator) ? file :
6969
File.join(parent_dir, file)
70-
File.expand_path file
70+
file = File.expand_path file
71+
File.exists?(file) ? file : nil
7172
end
73+
r.compact # remove nils
7274
end
7375
end
7476

0 commit comments

Comments
 (0)