Skip to contents

Lists the publicly retrievable files (the item's ORIGINAL bundle) of one or more DSpace 7 items via the REST API, without downloading them. Each row carries an absolute file_url so the actual bytes are fetched later by download_repo_files, the same deferred path used for Zenodo, OSF, and legacy DSpace (psycharchives_file_download()).

Usage

dspace7_file_download(dspace7_url, pb = NULL)

Arguments

dspace7_url

a vector of DSpace 7 item URLs

pb

a progress bar passed from another function

Value

a data frame of file information (one row per public file)

Examples

# \donttest{
if (online("conservancy.umn.edu")) {
  # lists the public files, which download_repo_files() can then fetch
  dspace7_file_download("https://conservancy.umn.edu/handle/11299/208294")
}
#>                                       dspace7_url
#> 1 https://conservancy.umn.edu/handle/11299/208294
#> 2 https://conservancy.umn.edu/handle/11299/208294
#>                                        name
#> 1                                ReadME.txt
#> 2 Iannarilli_et_al_Data_Code_and_Output.rar
#>                                                                                              file_url
#> 1 https://conservancy.umn.edu/server/api/core/bitstreams/389df8de-b452-4909-99b2-158184fd18a7/content
#> 2 https://conservancy.umn.edu/server/api/core/bitstreams/b39efe88-bc9d-45cf-b5be-0889ae251594/content
#>   file_location    size isdir ext    type
#> 1          <NA>   12889 FALSE txt    text
#> 2          <NA> 2897724 FALSE rar archive
# }