item.numAttachments incorrectly returning trashed attachments

I'm writing a plugin and noticed that whenever I call item.numAttachments(false) on a Zotero.item, it includes attachments in the trash too. Presumably this is what the argument i passed is supposed to prevent...

am i doing something wrong or is this a bug?

-Keith
  • edited May 30, 2009
    while i'm at it... the plugin i wrote is for renaming attachments using the metadata... right now I'm just doing it by creating a whole new file with the right filename and importing that, then erasing the old attachment.

    Is there a better way to do this? I briefly considered just renaming the file in the storage directory and updating the filename in the database, but I wasn't sure if that would lead to database problems, or even syncing problems (i don't use the sync function).

    Thanks,
    Keith
  • Post your questions to the dev list and I (or someone else) will be happy to help you out.
Sign In or Register to comment.