get_file_details: Get file details for a record

View source: R/files.R

get_file_detailsR Documentation

Get file details for a record

Description

This function returns a list of the files associated with a record. The access status of the record is reported, along with the local absolute file path and whether a local copy is present. If there is no local copy and the dataset is open access, you can use download_safe_files to get local copies. If the dataset is embargoed or restricted, see insert_dataset.

Usage

get_file_details(record_id)

Arguments

record_id

A record id

Value

A data frame with fields: filename, dataset_access, path and local.

Examples

   
   set_example_safe_dir()
   files <- get_file_details(1400562)
   unset_example_safe_dir()
   

safedata documentation built on May 31, 2023, 9:01 p.m.