Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/browserstack/localbinary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def initialize
end

def download(dest_parent_dir)
unless File.exists? dest_parent_dir
unless File.exist? dest_parent_dir
Dir.mkdir dest_parent_dir
end
uri = URI.parse(@http_path)
Expand Down Expand Up @@ -63,7 +63,7 @@ def binary_path
dest_parent_dir = get_available_dirs
binary_path = File.join(dest_parent_dir, "BrowserStackLocal#{".exe" if @windows}")

if File.exists? binary_path
if File.exist? binary_path
binary_path
else
binary_path = download(dest_parent_dir)
Expand Down