Skip to content

Commit

Permalink
log folders to scan
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Apr 17, 2023
1 parent 932b460 commit f12194e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/zotero-folder-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class FolderImport {

private async duplicates(path: string): Promise<string[]> {
const rmlint: string = Zotero.Prefs.get('extensions.folder-import.rmlint')
const scanLinked: string = Zotero.Prefs.get('extensions.folder-import.rmlint.linked')
const scanLinked: boolean = Zotero.Prefs.get('extensions.folder-import.rmlint.linked')
if (!rmlint) return []
if (!await OS.File.exists(rmlint)) return []

Expand All @@ -267,6 +267,7 @@ class FolderImport {
}
}

Zotero.debug(`Folder import: scanning for duplicates in ${JSON.stringify([...linked])}`)
const proc = Components.classes['@mozilla.org/process/util;1'].createInstance(Components.interfaces.nsIProcess)
proc.init(cmd)
proc.startHidden = true
Expand Down

0 comments on commit f12194e

Please sign in to comment.