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

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