natverse / nat.jrcbrains

Janelia Research Campus Bridging Registrations for Drosophila Brains
https://natverse.github.io/nat.jrcbrains
Other
0 stars 0 forks source link

Only download missing registration files #4

Open jefferis opened 5 years ago

jefferis commented 5 years ago

If we stored headers next to downloaded files, we should be able to use this header to check if remote file is new or not.

> h1=httr::HEAD("https://ndownloader.figshare.com/files/12919949?private_link=85b2f2e4f479c94441f2")
 httr::headers(h1)
[snip ...]
$`x-amz-version-id`
[1] "SvNuj35Vt3qah0Nq3VCneHUyZ9Sa_EeQ"