This function downloads attachments for the specified table rows and saves them in a structured directory. Each row with attachments will have a dedicated folder under the table-specific subdirectory.
download_attachments(
rows,
table_meta,
save_to_directory,
skip_if_instance_folder_exists = FALSE
)Invisibly returns NULL. Downloads the attachments as a side effect.
A tibble or data frame containing the table rows to download attachments for.
List. Metadata for the table, as returned by get_table_metadata(table_name).
String. The parent directory where attachments will be saved. A subdirectory with the name of the table will be created, and each row with attachments will have its own subfolder under this directory.
Logical. If TRUE, rows with an existing instance folder
will be skipped to avoid re-downloading attachments. Defaults to FALSE.