upload_files_to_datastore()
fails if only one file is uploaded
#388
Labels
upload_files_to_datastore()
fails if only one file is uploaded
#388
Describe the bug
upload_files_to_datastore()
fails if a length 1 character vector is used.This is likely due to reticulate converting length 1 vectors to scalars rather than to a length 1 list.
To Reproduce
Using a list instead works eg
Expected behavior
For the function to work with single files.
Wrapping the files argument in
as.list()
before internally callingdatastore$upload_files()
might be a possible fixThe text was updated successfully, but these errors were encountered: