Skip to content

Commit

Permalink
gds_list_files_filter_relevant: loosen regex checker
Browse files Browse the repository at this point in the history
  • Loading branch information
pdiakumis committed Oct 7, 2024
1 parent f4b210a commit 2417f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fs_icav1.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ gds_list_files_filter_relevant <- function(gdsdir, pattern = NULL, regexes = DR_
no_recurse = TRUE, page_token = NULL,
recursive = NULL) {
pattern <- pattern %||% ".*" # keep all recognisable files by default
assertthat::assert_that(all(colnames(regexes) == c("regex", "fun")))
assertthat::assert_that(all(c("regex", "fun") %in% colnames(regexes)))
cols_sel <- c("type", "bname", "size", "lastmodified", "file_id", "path", "presigned_url")
d <- dracarys::gds_list_files_dir(
gdsdir = gdsdir, token = token, page_size = page_size, include_url = include_url,
Expand Down

0 comments on commit 2417f40

Please sign in to comment.