We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9199bbc + b44f38b commit 9ad322bCopy full SHA for 9ad322b
lib/browserstack/localbinary.rb
@@ -34,7 +34,7 @@ def initialize
34
end
35
36
def download(dest_parent_dir)
37
- unless File.exists? dest_parent_dir
+ unless File.exist? dest_parent_dir
38
Dir.mkdir dest_parent_dir
39
40
uri = URI.parse(@http_path)
@@ -63,7 +63,7 @@ def binary_path
63
dest_parent_dir = get_available_dirs
64
binary_path = File.join(dest_parent_dir, "BrowserStackLocal#{".exe" if @windows}")
65
66
- if File.exists? binary_path
+ if File.exist? binary_path
67
binary_path
68
else
69
binary_path = download(dest_parent_dir)
0 commit comments