Local file trigger for moved and deleted file

Hi, thanks for sharing such a great tool as the Local Ai package V3.
Trying to do some changes to the local files indexing I already have some questions:

  • delete action not activated on the trigger, why?
  • moved files do not get deleted, just new on gets indexed. This is due to the fileID being the complete path so if a file is moved the new on gets indexed, but the old one does not get removed. Neither if the file gets deleted.

Wondering if the n8n Local File Trigger behaves with a “delete + add” when a file is moved so considering conditionally executing the indexing part only when the file is “add” or “change” only, so any trigger gets removed but only new or updated gets indexed.

Also considering how to decompose (this should likely be a separate question) the directory in the file path, so one could save that data to the document vectors as a possible way to filter responses… so “/path/contracts/name_of_company/file.pdf” could end up allowing for an specific search of “contracts” only documents or “name_of_company” only files. This way one indexing could be used as micro agents for different cases or for broader ones.

Any guidance on this would be greatly appreciated.