On 12/28/21 9:42 PM, Minyi Han wrote:
> I found this function
> Zotero.Attachments.convertLinkedFileToStoredFile(item), when it runs,
> it will convert the linked file to stored one, however the original
> attachment is still in the linked files folder. Which parameter should
> be used to delete the original one, only keep the stored one in the
> storage folder? (item, true), (item, 0) for the parameter were tried,
> but failed.
Remember that Zotero is open source — you can just look at the source
code for questions like this. You certainly shouldn't just make up
parameters like you're doing.
It's { move: true } for the second parameter:
https://github.com/zotero/zotero/blob/ad02b701983b180a979bfd955d050339add50a06/chrome/content/zotero/xpcom/attachments.js#L2747