synapseFileTransfer: Upload/Download a File from Synapse

Description Usage Arguments Details Value Note Author(s) See Also

Description

Functions for uploading and downloading files using the libcurl library that is part of RCurl.

Usage

1
2
3
4
5
synapseDownloadFile(url, checksum, curlHandle = getCurlHandle(), cacheDir = synapseCacheDir(), opts = .getCache("curlOpts"))
synapseDownloadFileToDestination(url, destfile, checksum, curlHandle = getCurlHandle(), opts = .getCache("curlOpts"))
synapseUploadFile(url, srcfile, checksum, contentType =
                 "application/binary", method = "curl", quiet = FALSE,
                 mode = "w", cacheOK = TRUE)

Arguments

url

url of the remote file

srcfile

local file to upload

checksum

checksum of the local file

curlHandle

curlHandle for the request

cacheDir

local file cache directory where downloaded files will be stored

opts

curl options

destfile

local file location

method

method to be used for transfer. currently only "curl" is supported.

quiet

boolean indicated whether function should print output to stdout

mode

mode of the file

cacheOK

boolean controlling cache

contentType

content type

Details

These functions bypass R's memory using c curlWriter and curlReader functions.

Value

synapseDownloadFile returns a list of the files that were downloaded

Note

This is an internal method and should not be called by the user

Author(s)

Matt Furia

See Also

curlPerform


Sage-Bionetworks/rSynapseClientRewrite documentation built on May 9, 2019, 7:06 p.m.