Skip to contents

List files on ICA GDS filesystem.

Usage

gds_files_list(
  gdsdir,
  token,
  page_size = NULL,
  include_url = FALSE,
  no_recurse = TRUE,
  page_token = NULL,
  recursive = NULL
)

Arguments

gdsdir

Full path to GDS directory.

token

ICA access token (def: $ICA_ACCESS_TOKEN env var).

page_size

Page size (def: 10).

include_url

Include presigned URLs to all files within the GDS directory (def: FALSE).

no_recurse

Do not recurse through the file list i.e. just give the first <page_size> items without recursing further down the list using <page_token>.

page_token

Page token (def: NULL). Used internally for recursion.

recursive

Should files be returned recursively in and under the specified GDS directory, or only directly in the specified GDS directory (def: TRUE).

Value

Tibble with file basename, file size, file full data path, file dir name.

Examples

if (FALSE) { # \dontrun{
gdsdir <- file.path(
  "gds://production/primary_data",
  "240322_A00130_0290_BH5HLLDSXC/20240323f56ec5a5/WGS_TsqNano"
)
gdsdir <- file.path(
  "gds://bssh.acddbfda498038ed99fa94fe79523959/Runs",
  "240322_A00130_0290_BH5HLLDSXC_r.3TbcOsEKZUyetygkqIOXcg/InterOp"
)
gdsdir <- file.path(
  "gds://production/analysis_data/SBJ00699/umccrise",
  "202203277dcf8562/L2200352__L2100146/SBJ00699__MDX220105/coverage"
)
token <- ica_token_validate()
page_size <- 11
include_url <- TRUE
page_token <- NULL
no_recurse <- TRUE
recursive <- NULL
gds_files_list(gdsdir, token, page_size, include_url, no_recurse, page_token, recursive)
} # }