Skip to contents

find_orphan_files() compares the files present in a specified folder with those linked to references in a Zotero library, returning the names of files that are not linked (i.e., orphan files).

Usage

find_orphan_files(
  lib_file = tcltk::tk_choose.files(caption = "Select the Zotero library CSV file", multi
    = FALSE),
  file_folder = tcltk::tk_choose.dir(caption = "Select the folder containing the files")
)

Arguments

lib_file

(optional) A string specifying the path to the Zotero library exported as a CSV file. (default: tk_choose.files()).

file_folder

(optional) A string specifying the path to the folder containing the files linked to references in the Zotero library. (default: tk_choose.dir()).

Value

A character vector with the names of the orphan files.

Details

To export your library from Zotero, go to the menu File > Export Library... and choose the CSV format.

See also

Other Zotero functions: list_linked_files()

Examples

if (FALSE) { # \dontrun{
  find_orphan_files()
} # }