Closed doomlab closed 1 year ago
Thanks for the detailed issue, @doomlab! I was able to reproduce with a slightly smaller reprex:
library(osfr)
#> Automatically registered OSF personal access token
ethics_page <- osf_retrieve_node("https://osf.io/ycn7z/")
local <- osf_ls_files(ethics_page, path = "Local IRB", n_max = 1000)
dupe_ids <- local$id[duplicated(local$id)]
subset(local, id %in% dupe_ids)
#> # A tibble: 2 × 4
#> name id meta type_IRB
#> * <chr> <chr> <list> <chr>
#> 1 421_Lu.pdf 6161fcd9fd5b2301429849b3 <named list [3]> Local IRB
#> 2 421_Lu.pdf 6161fcd9fd5b2301429849b3 <named list [3]> Local IRB
I'll take a look.
Great thank you!
I dug into this a little more and found the duplicate entries were coming directly from OSF so I'm going to close this in favor of the new issue I posted here: https://github.com/CenterForOpenScience/osf.io/issues/10086.
I am trying to download the filenames of a node. Every time we make a change to a file (upload, rename), a new file is "missing" from the download, and one is repeated.
When I run the code above I get the proper number of files BUT a file name is repeated:
And then if you look at the node, there's only one copy:
And then one is missing:
Any idea what is going on? It often changes which one is missing, but it's always the newest that's repeated.