public void uploadFile(Path fileToUpload,String destinationFileName) throws IOException {
  Preconditions.checkNotNull(fileToUpload);
  Preconditions.checkArgument(Files.exists(fileToUpload));
  Preconditions.checkArgument(!Strings.isNullOrEmpty(destinationFileName));
  uploadFile(fileToUpload,destinationFileName,true);
}

public void uploadFile ( Path fileToUpload , String destinationFileName ) throws IOException { Preconditions . checkNotNull ( fileToUpload ) ; Preconditions . checkArgument ( Files . exists ( fileToUpload ) ) ; Preconditions . checkArgument ( ! Strings . isNullOrEmpty ( destinationFileName ) ) ; uploadFile ( fileToUpload , destinationFileName , true ) ; }
uploads a file to saucelabs . usually for an app or an apk .
