Skip to contents

When a source's url list gains explicit filenames, files already downloaded under the name derived from the url would otherwise be re-downloaded and the old copies orphaned. This renames them in place instead.

Usage

pg_migrate_rawfiles(file_info = NULL, dry_run = TRUE)

Arguments

file_info

A data.frame as from pg_rawfiles(). Defaults to all of it.

dry_run

Logical. If TRUE (default), only report what would be renamed.

Value

data.frame of renames (invisibly).

Examples

if (FALSE) { # \dontrun{
priogrid:::pg_migrate_rawfiles()
priogrid:::pg_migrate_rawfiles(dry_run = FALSE)
} # }