I am developing a FileProvider extension on Mac. I was wondering what the most reliable way to evict a document as soon as possible after createItem is called for the respective item.
Our use-case for this is as follows:
Users can 'bulk-import' items into a FileProvider
folder, and we want our application to immediately evict the item as soon as possible once the item's content is uploaded to the server. This is to save space on the user's machine.
So, what is the best way to accomplish immediate eviction after item creation?
I've tried calling evictItem
from within the createItem
function itself, but that yields many errors and can cause slowness.