lfs_upload: Upload a file to LFS storage

Description Usage Arguments Value

View source: R/upload.R

Description

Upload a file to LFS storage

Usage

1
2
3
4
5
6
7
8
lfs_upload(
  file_path,
  repo,
  dataset,
  token,
  transfers = c("multipart-basic", "basic"),
  headers = c()
)

Arguments

file_path

character. The path of the file to be uploaded.

repo

character. The name of repository where the dataset lives.

dataset

character. The name of the dataset where the file is gonna be uploaded.

token

character. Authorization token.

transfers

character vector. A vector containing the transfer methods to be negotiated with the server.

headers

named character vector. Values to be added to the headers of the batch request to the LFS server.

Value

list with sha256 and size of the object


datopian/giftlessclient documentation built on Jan. 29, 2021, 3:40 p.m.