sevenbridges-r icon indicating copy to clipboard operation
sevenbridges-r copied to clipboard

Error: HTTP Status 400: Downloading folders is not supported

Open komalsrathi opened this issue 3 years ago • 0 comments

Hi,

I wanted to download all files within a particular project > folder > sub-folders. This is what I am doing:

# Get a project by its id
p <- a$project(id = project_id)

# Get folder of a patient with subfolders that contain files I want to download
f <- p$file(name = patient_folder_name)

> class(f)
[1] "Files"
attr(,"package")
[1] "sevenbridges"

Now I want to retrieve download urls of all files in the object f. However, I get an error:

> f$download()
Error: HTTP Status 400: Downloading folders is not supported.
> f$download_url()
Error: HTTP Status 400: Downloading folders is not supported.

How do I download all files in those subfolders under the object f?

komalsrathi avatar Aug 31 '21 12:08 komalsrathi